[project @ 2005-04-15 20:45:43 by adrianl]

Fix for selection changing when page reformatted

svn path=/import/netsurf/; revision=1644
This commit is contained in:
Adrian Lees 2005-04-15 20:45:43 +00:00
parent bbc43410aa
commit 3028d21f35

View File

@ -171,8 +171,11 @@ unsigned selection_label_subtree(struct selection *s, struct box *node, unsigned
node->byte_offset = idx;
if (node->text && !node->object)
if (node->text && !node->object) {
idx += node->length;
if (node->space) idx++;
}
while (child) {
idx = selection_label_subtree(s, child, idx);