Skip to content

Commit

Permalink
src/__init__.py:page_merge(): fixed bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
julian-smith-artifex-com committed May 15, 2024
1 parent 2f48b97 commit 73bdc3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20515,7 +20515,7 @@ def page_merge(doc_des, doc_src, page_from, page_to, rotate, links, copy_annots,
new_annots = mupdf.pdf_dict_put_array( page_dict, PDF_NAME('Annots'), n)
for i in range(n):
o = mupdf.pdf_array_get( old_annots, i)
if not o.m_internal or mupdf.pdf_is_dict(o):
if not o.m_internal or not mupdf.pdf_is_dict(o):
continue # skip non-dict items
if mupdf.pdf_dict_gets( o, "IRT").m_internal:
continue
Expand Down

0 comments on commit 73bdc3b

Please sign in to comment.