diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-12-12 12:42:54 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-12-12 12:58:35 +0100 |
commit | 11579d6d42eafbea141d8121fa1f5b3bd2ee2391 (patch) | |
tree | 0d108dadb2517cc0168a0c17784ccda1f8f663f9 /source/pdf | |
parent | 83cff9734876e9454476086b79da15db1234e7b6 (diff) | |
download | mupdf-11579d6d42eafbea141d8121fa1f5b3bd2ee2391.tar.xz |
pdf: Fix bug 697431.
We were incorrectly calling pdf_update_object to try to make sure that
an edited array was going to be saved during incremental saves.
This call was both buggy and unnecessary.
Diffstat (limited to 'source/pdf')
-rw-r--r-- | source/pdf/pdf-annot-edit.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/source/pdf/pdf-annot-edit.c b/source/pdf/pdf-annot-edit.c index 9d279a58..09937c5e 100644 --- a/source/pdf/pdf-annot-edit.c +++ b/source/pdf/pdf-annot-edit.c @@ -174,11 +174,6 @@ pdf_delete_annot(fz_context *ctx, pdf_page *page, pdf_annot *annot) if (i >= 0) pdf_array_delete(ctx, annot_arr, i); - if (pdf_is_indirect(ctx, annot_arr)) - pdf_update_object(ctx, doc, pdf_to_num(ctx, annot_arr), annot_arr); - else - pdf_dict_put(ctx, page->obj, PDF_NAME_Annots, annot_arr); - /* The garbage collection pass when saving will remove the annot object, * removing it here may break files if multiple pages use the same annot. */ |