summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-object.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/pdf/pdf-object.c')
-rw-r--r--source/pdf/pdf-object.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/pdf/pdf-object.c b/source/pdf/pdf-object.c
index 10a16c8a..5ad50421 100644
--- a/source/pdf/pdf-object.c
+++ b/source/pdf/pdf-object.c
@@ -1758,6 +1758,8 @@ int pdf_obj_parent_num(fz_context *ctx, pdf_obj *obj)
switch(obj->kind)
{
+ case PDF_INDIRECT:
+ return REF(obj)->num;
case PDF_ARRAY:
return ARRAY(obj)->parent_num;
case PDF_DICT: