diff options
author | Robin Watts <robin.watts@artifex.com> | 2012-07-06 14:11:52 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2012-07-06 14:11:52 +0100 |
commit | 78f462933b2373541bd0d75a3fba84585400221f (patch) | |
tree | 6220b446e613babf94f685acd48064fefc23c32b /pdf/pdf_write.c | |
parent | 39cbb7b1dff63a9eea61355e7885d3078b638789 (diff) | |
download | mupdf-78f462933b2373541bd0d75a3fba84585400221f.tar.xz |
Bug 693167: Solve pdfclean -ggg deleting too many objects
While pdf writing, compactxref would fail to take into account
that duplicated objects would have been mapped down to a lower
number, and the use_list value for the upper one would be set to
zero.
Thanks to Zeniko for pointing out this fix.
Diffstat (limited to 'pdf/pdf_write.c')
-rw-r--r-- | pdf/pdf_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_write.c b/pdf/pdf_write.c index 3527961f..76ab1cb1 100644 --- a/pdf/pdf_write.c +++ b/pdf/pdf_write.c @@ -616,7 +616,7 @@ static void compactxref(pdf_document *xref, pdf_write_options *opts) for (num = 1; num < xref->len; num++) { /* If it's not used, map it to zero */ - if (!opts->use_list[num]) + if (!opts->use_list[opts->renumber_map[num]]) { opts->renumber_map[num] = 0; } |