diff options
Diffstat (limited to 'backend')
-rw-r--r-- | backend/pdf/ev-poppler.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc index 6f7b544e..20cd8e75 100644 --- a/backend/pdf/ev-poppler.cc +++ b/backend/pdf/ev-poppler.cc @@ -2849,6 +2849,8 @@ pdf_document_annotations_remove_annotation (EvDocumentAnnotations *document_anno if (mapping_list) { annot_mapping = ev_mapping_list_find (mapping_list, annot); ev_mapping_list_remove (mapping_list, annot_mapping); + if (ev_mapping_list_length (mapping_list) == 0) + g_hash_table_remove (pdf_document->annots, GINT_TO_POINTER (page->index)); } pdf_document->annots_modified = TRUE; |