diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-03-12 14:48:10 +0100 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-03-12 14:57:42 +0100 |
commit | e9349d8fc30de9871698e13fd35d61b457cccbc5 (patch) | |
tree | 7cf525e01bf007952367b67d59c2a68b13af1cc4 | |
parent | 4839427ab02dcebcc4c7703d7a04c4bdea6fac18 (diff) | |
download | mupdf-e9349d8fc30de9871698e13fd35d61b457cccbc5.tar.xz |
jni: Temporary fix to make sure annot AP field is updated.
-rw-r--r-- | platform/java/mupdf_native.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c index 0cf43dea..ccef38c4 100644 --- a/platform/java/mupdf_native.c +++ b/platform/java/mupdf_native.c @@ -9093,7 +9093,11 @@ FUN(PDFAnnotation_updateAppearance)(JNIEnv *env, jobject self) if (!ctx || !annot) return; fz_try(ctx) + { + pdf_dict_del(ctx, annot->obj, PDF_NAME_AP); /* nuke old AP */ pdf_update_appearance(ctx, annot->page->doc, annot); + pdf_update_annot(ctx, annot); /* ensure new AP is put into annot */ + } fz_catch(ctx) jni_rethrow(env, ctx); } |