E-book viewer: Fix a regression that caused notes from a different highlights to be shown in some situations. Fixes #2017130 [Private bug](https://bugs.launchpad.net/calibre/+bug/2017130)

This commit is contained in:
Kovid Goyal 2023-04-20 17:58:29 +05:30
parent eb72eabb44
commit 7af8910281
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

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