[gs-commits] mupdf/master - 0_6-231-g270dfc5 - Only drop objects that have been renumbered in pdfclean.
Tor Andersson
tor at ghostscript.com
Fri Jul 30 01:22:24 UTC 2010
commit 270dfc5e68daf8e19db073ae1a00880a93d19bd8
Author: Sebastian Rasmussen <sebras at hotmail.com>
Date: Mon Jul 26 12:22:50 2010 +0000
Only drop objects that have been renumbered in pdfclean.
Ignore-this: eac79c2ac1eba93af05e962f362f404d
darcs-hash:20100726122250-86a4e-dc5effe418d77cfa91d0eba2509ea5899b7ef87f.gz
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/apps/pdfclean.c b/apps/pdfclean.c
index ab2ee4c..27c8693 100644
--- a/apps/pdfclean.c
+++ b/apps/pdfclean.c
@@ -171,9 +171,12 @@ static void renumberxref(void)
{
if (newnumlist[num] >= 0)
{
- xref->table[newnumlist[num]] = oldxreflist[num];
uselist[newnumlist[num]] = 1;
- xref->table[num].obj = nil;
+ if (newnumlist[num] != num)
+ {
+ xref->table[newnumlist[num]] = oldxreflist[num];
+ xref->table[num].obj = nil;
+ }
}
}
--
git/hooks/post-receive
More information about the gs-commits
mailing list