From 3bd3a811c2f17670f99b815a5f697afa378de652 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Fri, 11 Apr 2008 15:52:56 +0000 Subject: Improve selection of text in floats. svn path=/trunk/netsurf/; revision=4092 --- desktop/selection.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'desktop/selection.c') diff --git a/desktop/selection.c b/desktop/selection.c index 9dd58ce4f..4d675cc0c 100644 --- a/desktop/selection.c +++ b/desktop/selection.c @@ -549,7 +549,10 @@ bool traverse_tree(struct box *box, unsigned start_idx, unsigned end_idx, whitespace_text = NULL; } if (num_space == NUMBER_SPACE(box->byte_offset) && - box->type != BOX_BR) { + box->type != BOX_BR && + !((box->type == BOX_FLOAT_LEFT || + box->type == BOX_FLOAT_RIGHT) && + !box->text)) { unsigned start_offset; unsigned end_offset; -- cgit v1.2.3