summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-form.c
diff options
context:
space:
mode:
authorFred Ross-Perry <fred.ross-perry@artifex.com>2017-10-23 14:43:16 -0700
committerTor Andersson <tor.andersson@artifex.com>2017-11-22 23:09:51 +0100
commitb13d7c7d2609ae32cb8fd4931eee12084e7b77b3 (patch)
treeefa4951f17d5b4616f3729a8bdd1353e6db8d6a1 /source/pdf/pdf-form.c
parentc2d7be0947d2c7d730f84270149cf3c3c6180a55 (diff)
downloadmupdf-b13d7c7d2609ae32cb8fd4931eee12084e7b77b3.tar.xz
jni: Make sure to dirty annotation whenever it changes.
Diffstat (limited to 'source/pdf/pdf-form.c')
-rw-r--r--source/pdf/pdf-form.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/pdf/pdf-form.c b/source/pdf/pdf-form.c
index 09b8258e..95b0da54 100644
--- a/source/pdf/pdf-form.c
+++ b/source/pdf/pdf-form.c
@@ -643,11 +643,11 @@ void pdf_update_page(fz_context *ctx, pdf_page *page)
{
pdf_annot *annot;
- /* Reset changed_annots to empty */
+ /* Mark all dirty annots as clean */
for (annot = page->annots; annot; annot = annot->next)
- annot->changed = 0;
+ pdf_clean_annot(ctx, annot);
- /* Flag all changed annots */
+ /* Flag all dirty annots */
for (annot = page->annots; annot; annot = annot->next)
{
pdf_xobject *ap = pdf_keep_xobject(ctx, annot->ap);
@@ -657,7 +657,7 @@ void pdf_update_page(fz_context *ctx, pdf_page *page)
{
pdf_update_annot(ctx, annot);
if ((ap != annot->ap || ap_iteration != annot->ap_iteration))
- annot->changed = 1;
+ pdf_dirty_annot(ctx, annot);
}
fz_always(ctx)
pdf_drop_xobject(ctx, ap);