summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-06-30 15:15:11 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-07-06 13:34:37 +0200
commitb644ed1360d0e47c03a637bbc568000d57d0cdbf (patch)
tree6c36bbe8b9a53f2d3e1467a4c58403e33bfa561e
parent74627fe0ccb279638f82472048311097b39741d5 (diff)
downloadmupdf-b644ed1360d0e47c03a637bbc568000d57d0cdbf.tar.xz
pdf: Increment generation number in the xref when deleting an object.
-rw-r--r--source/pdf/pdf-xref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c
index 117e4f1c..17de3f60 100644
--- a/source/pdf/pdf-xref.c
+++ b/source/pdf/pdf-xref.c
@@ -2179,7 +2179,7 @@ pdf_delete_object(fz_context *ctx, pdf_document *doc, int num)
x->type = 'f';
x->ofs = 0;
- x->gen = 0;
+ x->gen += 1;
x->stm_ofs = 0;
x->stm_buf = NULL;
x->obj = NULL;