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:
Kovid Goyal 2023-04-04 11:57:22 +05:30
parent 87ab6fa448
commit c7636ad90d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -54,7 +54,7 @@ def all_annots_in_range(r, annot_id_uuid_map, ans):
doc = parent.ownerDocument or document doc = parent.ownerDocument or document
iterator = doc.createNodeIterator(parent) iterator = doc.createNodeIterator(parent)
is_full_tree = parent is doc.documentElement is_full_tree = parent is doc.documentElement
in_range = not is_full_tree in_range = is_full_tree
while True: while True:
node = iterator.nextNode() node = iterator.nextNode()
if not node: if not node: