summaryrefslogtreecommitdiff
path: root/source/pdf
diff options
context:
space:
mode:
Diffstat (limited to 'source/pdf')
-rw-r--r--source/pdf/pdf-xref.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/pdf/pdf-xref.c b/source/pdf/pdf-xref.c
index 2341ddd9..a5cc29ef 100644
--- a/source/pdf/pdf-xref.c
+++ b/source/pdf/pdf-xref.c
@@ -1936,6 +1936,10 @@ object_updated:
if (!try_repair && rnum != num)
{
pdf_drop_obj(ctx, x->obj);
+ x->type = 'f';
+ x->ofs = -1;
+ x->gen = 0;
+ x->stm_ofs = 0;
x->obj = NULL;
try_repair = (doc->repair_attempted == 0);
}