diff options
author | Giselle Machado <[email protected]> | 2014-06-27 17:32:24 +0200 |
---|---|---|
committer | raveit65 <[email protected]> | 2017-08-28 16:04:01 +0200 |
commit | 3ada385fead55fa8f94afa128558348d8530dee6 (patch) | |
tree | 5486433eb195ac63790ce5d54f84fa02b5ba8410 /backend | |
parent | 5891c789db9e0d6828a4ab0a9b4c77d57138ae0f (diff) | |
download | atril-3ada385fead55fa8f94afa128558348d8530dee6.tar.bz2 atril-3ada385fead55fa8f94afa128558348d8530dee6.tar.xz |
pdf: Reset the annotation mapping when there are no more annotations
https://bugzilla.gnome.org/show_bug.cgi?id=649044
origin commit:
https://git.gnome.org/browse/evince/commit/?id=06e9129
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; |