diff options
Diffstat (limited to 'apps/pdfclean.c')
-rw-r--r-- | apps/pdfclean.c | 7 |
1 files changed, 5 insertions, 2 deletions
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; + } } } |