diff options
Diffstat (limited to 'source/pdf/pdf-annot-edit.c')
-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. */ |