summaryrefslogtreecommitdiff
path: root/platform/android/viewer/jni/mupdf.c
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/viewer/jni/mupdf.c')
-rw-r--r--platform/android/viewer/jni/mupdf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/android/viewer/jni/mupdf.c b/platform/android/viewer/jni/mupdf.c
index f9d6042b..451671c7 100644
--- a/platform/android/viewer/jni/mupdf.c
+++ b/platform/android/viewer/jni/mupdf.c
@@ -2600,7 +2600,7 @@ JNI_FN(MuPDFCore_saveInternal)(JNIEnv * env, jobject thiz)
char *tmp;
pdf_write_options opts = { 0 };
- opts.do_incremental = 1;
+ opts.do_incremental = pdf_can_be_saved_incrementally(ctx, idoc);
tmp = tmp_path(glo->current_path);
if (tmp)