summaryrefslogtreecommitdiff
path: root/platform/x11
diff options
context:
space:
mode:
Diffstat (limited to 'platform/x11')
-rw-r--r--platform/x11/pdfapp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c
index fd1f6a1a..9d1debbb 100644
--- a/platform/x11/pdfapp.c
+++ b/platform/x11/pdfapp.c
@@ -529,7 +529,7 @@ static int pdfapp_save(pdfapp_t *app)
{
pdf_write_options opts = { 0 };
- opts.do_incremental = 1;
+ opts.do_incremental = pdf_can_be_saved_incrementally(app->ctx, idoc);
if (strcmp(buf, app->docpath) != 0)
{