summaryrefslogtreecommitdiff
path: root/pdf/pdf_field.c
diff options
context:
space:
mode:
Diffstat (limited to 'pdf/pdf_field.c')
-rw-r--r--pdf/pdf_field.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_field.c b/pdf/pdf_field.c
index 4d6d9cdb..964c04c1 100644
--- a/pdf/pdf_field.c
+++ b/pdf/pdf_field.c
@@ -14,7 +14,7 @@ pdf_obj *pdf_get_inheritable(pdf_document *doc, pdf_obj *obj, char *key)
}
return fobj ? fobj
- : pdf_dict_gets(pdf_dict_gets(pdf_dict_gets(doc->trailer, "Root"), "AcroForm"), key);
+ : pdf_dict_gets(pdf_dict_gets(pdf_dict_gets(pdf_trailer(doc), "Root"), "AcroForm"), key);
}
int pdf_get_field_flags(pdf_document *doc, pdf_obj *obj)