Skip to content

Commit 49efdb1

Browse files
committed
fix: check for annotation response existence
1 parent 312e4a7 commit 49efdb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -848,7 +848,7 @@ def delete_responses(self):
848848
page = _pdf_annot_page(annot)
849849
while 1:
850850
irt_annot = JM_find_annot_irt(annot)
851-
if not irt_annot.m_internal:
851+
if not irt_annot:
852852
break
853853
mupdf.pdf_delete_annot(page, irt_annot)
854854
mupdf.pdf_dict_del(annot_obj, PDF_NAME('Popup'))

0 commit comments

Comments
 (0)