Skip to content

Commit 73bdc3b

Browse files
src/__init__.py:page_merge(): fixed bug.
1 parent 2f48b97 commit 73bdc3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20515,7 +20515,7 @@ def page_merge(doc_des, doc_src, page_from, page_to, rotate, links, copy_annots,
2051520515
new_annots = mupdf.pdf_dict_put_array( page_dict, PDF_NAME('Annots'), n)
2051620516
for i in range(n):
2051720517
o = mupdf.pdf_array_get( old_annots, i)
20518-
if not o.m_internal or mupdf.pdf_is_dict(o):
20518+
if not o.m_internal or not mupdf.pdf_is_dict(o):
2051920519
continue # skip non-dict items
2052020520
if mupdf.pdf_dict_gets( o, "IRT").m_internal:
2052120521
continue

0 commit comments

Comments
 (0)