diff --git a/src/pyj/range_utils.pyj b/src/pyj/range_utils.pyj index 51d0d7782d..fb2c712037 100644 --- a/src/pyj/range_utils.pyj +++ b/src/pyj/range_utils.pyj @@ -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: