diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-06-30 15:15:11 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-07-06 13:34:37 +0200 |
commit | b644ed1360d0e47c03a637bbc568000d57d0cdbf (patch) | |
tree | 6c36bbe8b9a53f2d3e1467a4c58403e33bfa561e | |
parent | 74627fe0ccb279638f82472048311097b39741d5 (diff) | |
download | mupdf-b644ed1360d0e47c03a637bbc568000d57d0cdbf.tar.xz |
pdf: Increment generation number in the xref when deleting an object.
-rw-r--r-- | source/pdf/pdf-xref.c | 2 |
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; |