mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-28 06:49:41 +03:00
[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:
parent
bbc43410aa
commit
3028d21f35
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user