summaryrefslogtreecommitdiff
path: root/android/jni/mupdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'android/jni/mupdf.c')
-rw-r--r--android/jni/mupdf.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/android/jni/mupdf.c b/android/jni/mupdf.c
index 18b4db40..2f5376ca 100644
--- a/android/jni/mupdf.c
+++ b/android/jni/mupdf.c
@@ -156,6 +156,14 @@ Java_com_artifex_mupdf_MuPDFCore_gotoPageInternal(JNIEnv *env, jobject thiz, int
JNIEXPORT void JNICALL
Java_com_artifex_mupdf_MuPDFCore_markDirtyInternal(JNIEnv *env, jobject thiz, int page)
{
+ if (currentPage)
+ {
+ fz_interactive *idoc = fz_interact(doc);
+
+ if (idoc)
+ fz_update_page(idoc, currentPage, NULL, NULL);
+ }
+
if (currentAnnotationList != NULL && page == pagenum)
{
fz_free_display_list(ctx, currentAnnotationList);