diff options
Diffstat (limited to 'source/pdf/pdf-form.c')
-rw-r--r-- | source/pdf/pdf-form.c | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/source/pdf/pdf-form.c b/source/pdf/pdf-form.c index bec1799a..f3d4e3c6 100644 --- a/source/pdf/pdf-form.c +++ b/source/pdf/pdf-form.c @@ -641,26 +641,9 @@ void pdf_update_page(fz_context *ctx, pdf_page *page) { pdf_annot *annot; - /* Mark all dirty annots as clean */ - for (annot = page->annots; annot; annot = annot->next) - pdf_clean_annot(ctx, annot); - - /* Flag all dirty annots */ for (annot = page->annots; annot; annot = annot->next) { - pdf_xobject *ap = pdf_keep_xobject(ctx, annot->ap); - int ap_iteration = annot->ap_iteration; - - fz_try(ctx) - { - pdf_update_annot(ctx, annot); - if ((ap != annot->ap || ap_iteration != annot->ap_iteration)) - pdf_dirty_annot(ctx, annot); - } - fz_always(ctx) - pdf_drop_xobject(ctx, ap); - fz_catch(ctx) - fz_rethrow(ctx); + pdf_update_annot(ctx, annot); } } |