diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2018-08-16 13:39:56 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2018-08-21 13:14:58 +0200 |
commit | d0128375e8a08c49d4d7e3e5612961237c696db8 (patch) | |
tree | 1803d0091e2efc64e52f8340774aaae7b416e039 | |
parent | f2c6b77550898e52d594637b9395f9b001c6be7a (diff) | |
download | mupdf-d0128375e8a08c49d4d7e3e5612961237c696db8.tar.xz |
Fix 699641: Follow Parent chain when looking up DA in annotations.
The DA property is marked as inheritable for text fields. It is not
marked inheritable for FreeText annotations, but I don't believe it will
be a problem to treat it as such anyway.
-rw-r--r-- | source/pdf/pdf-annot.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/pdf/pdf-annot.c b/source/pdf/pdf-annot.c index 85c0f28b..68de8898 100644 --- a/source/pdf/pdf-annot.c +++ b/source/pdf/pdf-annot.c @@ -1488,7 +1488,7 @@ pdf_print_default_appearance(fz_context *ctx, char *buf, int nbuf, const char *f void pdf_annot_default_appearance(fz_context *ctx, pdf_annot *annot, const char **font, float *size, float color[3]) { - pdf_obj *da = pdf_dict_get(ctx, annot->obj, PDF_NAME(DA)); + pdf_obj *da = pdf_dict_get_inheritable(ctx, annot->obj, PDF_NAME(DA)); if (!da) { pdf_obj *trailer = pdf_trailer(ctx, annot->page->doc); |