mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
E-book viewer: Fix a regression that caused incorrect highlight collision detection in some books. Fixes #2009586 [overlaping highlight problem](https://bugs.launchpad.net/calibre/+bug/2009586)
This commit is contained in:
parent
87ab6fa448
commit
c7636ad90d
@ -54,7 +54,7 @@ def all_annots_in_range(r, annot_id_uuid_map, ans):
|
||||
doc = parent.ownerDocument or document
|
||||
iterator = doc.createNodeIterator(parent)
|
||||
is_full_tree = parent is doc.documentElement
|
||||
in_range = not is_full_tree
|
||||
in_range = is_full_tree
|
||||
while True:
|
||||
node = iterator.nextNode()
|
||||
if not node:
|
||||
|
Loading…
x
Reference in New Issue
Block a user