From b13d7c7d2609ae32cb8fd4931eee12084e7b77b3 Mon Sep 17 00:00:00 2001 From: Fred Ross-Perry Date: Mon, 23 Oct 2017 14:43:16 -0700 Subject: jni: Make sure to dirty annotation whenever it changes. --- include/mupdf/pdf/annot.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mupdf/pdf/annot.h b/include/mupdf/pdf/annot.h index 7e95b31b..df068bc1 100644 --- a/include/mupdf/pdf/annot.h +++ b/include/mupdf/pdf/annot.h @@ -105,7 +105,7 @@ struct pdf_annot_s pdf_xobject *ap; int ap_iteration; - int changed; + int dirty; pdf_annot *next; }; @@ -221,4 +221,8 @@ void pdf_set_free_text_details(fz_context *ctx, pdf_annot *annot, fz_point *pos, */ pdf_annot *pdf_new_annot(fz_context *ctx, pdf_page *page); +void pdf_dirty_annot(fz_context *ctx, pdf_annot *annot); +void pdf_clean_annot(fz_context *ctx, pdf_annot *annot); +int pdf_annot_is_dirty(fz_context *ctx, pdf_annot *annot); + #endif -- cgit v1.2.3