summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-write.c
diff options
context:
space:
mode:
authorPaul Gardiner <paulg.artifex@glidos.net>2013-06-28 11:29:51 +0100
committerRobin Watts <robin.watts@artifex.com>2013-06-28 19:36:16 +0100
commit3b1d2b99bd2aa3f02e0e6aa26ec862f28722a011 (patch)
tree0fb16843d644e9749aeb91c0bf27cbae288747ff /source/pdf/pdf-write.c
parent063c7175976213010ce1c3c96c4d4b9703239eb0 (diff)
downloadmupdf-3b1d2b99bd2aa3f02e0e6aa26ec862f28722a011.tar.xz
Ensure altered objects are moved to the incremental xref section
Diffstat (limited to 'source/pdf/pdf-write.c')
-rw-r--r--source/pdf/pdf-write.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/pdf/pdf-write.c b/source/pdf/pdf-write.c
index 79271499..9d768d0f 100644
--- a/source/pdf/pdf-write.c
+++ b/source/pdf/pdf-write.c
@@ -2225,6 +2225,7 @@ void pdf_write_document(pdf_document *doc, char *filename, fz_write_options *fz_
if (!doc)
return;
+ doc->freeze_updates = 1;
ctx = doc->ctx;
pdf_finish_edit(doc);
@@ -2356,6 +2357,7 @@ void pdf_write_document(pdf_document *doc, char *filename, fz_write_options *fz_
pdf_drop_obj(opts.hints_length);
page_objects_list_destroy(ctx, opts.page_object_lists);
fclose(opts.out);
+ doc->freeze_updates = 0;
}
fz_catch(ctx)
{