mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
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:
parent
eb72eabb44
commit
7af8910281
@ -32,7 +32,7 @@ def first_annot_in_range(r, annot_id_uuid_map):
|
|||||||
parent = r.commonAncestorContainer
|
parent = r.commonAncestorContainer
|
||||||
doc = parent.ownerDocument or document
|
doc = parent.ownerDocument or document
|
||||||
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
|
||||||
iterator = doc.createNodeIterator(parent)
|
iterator = doc.createNodeIterator(parent)
|
||||||
while True:
|
while True:
|
||||||
node = iterator.nextNode()
|
node = iterator.nextNode()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user