From 79cadb339e01176133279790a0df08a06f757235 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Mon, 26 Jul 2010 12:22:50 +0000 Subject: Only drop objects that have been renumbered in pdfclean. --- apps/pdfclean.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'apps/pdfclean.c') diff --git a/apps/pdfclean.c b/apps/pdfclean.c index ab2ee4c8..27c8693c 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; + } } } -- cgit v1.2.3