summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source/pdf/pdf-page.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-page.c b/source/pdf/pdf-page.c
index d4d8015d..29366d62 100644
--- a/source/pdf/pdf-page.c
+++ b/source/pdf/pdf-page.c
@@ -570,7 +570,7 @@ pdf_insert_page(pdf_document *doc, pdf_page *page, int at)
pdf_array_insert(kids, page_ref, i);
}
- pdf_dict_puts(page->me, "Parent", page_ref);
+ pdf_dict_puts(page->me, "Parent", parent);
/* Adjust page counts */
while (parent)