From b644ed1360d0e47c03a637bbc568000d57d0cdbf Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 30 Jun 2016 15:15:11 +0200 Subject: pdf: Increment generation number in the xref when deleting an object. --- source/pdf/pdf-xref.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3