summaryrefslogtreecommitdiff
path: root/pdf/pdf_field.c
diff options
context:
space:
mode:
authorPaul Gardiner <paulg.artifex@glidos.net>2013-05-28 13:23:38 +0100
committerPaul Gardiner <paulg.artifex@glidos.net>2013-05-29 13:03:20 +0100
commitc630e8e213f5b697b3b78989ba866fed9dd0d45f (patch)
tree7558b7a2f46ee889d98ade65e8733ffe24580693 /pdf/pdf_field.c
parent9fff004ccb4f03495f6f2872af861263eba2def1 (diff)
downloadmupdf-c630e8e213f5b697b3b78989ba866fed9dd0d45f.tar.xz
Access the trailer via an interface
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)