summaryrefslogtreecommitdiff
path: root/pdf
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2012-10-24 23:10:26 +0200
committerTor Andersson <tor.andersson@artifex.com>2012-10-29 10:58:35 +0100
commit246d59d7c4a41bda9ef28ca38eba3be5f67726cc (patch)
tree71d023bb9d585367831b9f677161751aac48386a /pdf
parent762c15ba97189cdcfc244862abbb5df96c612de1 (diff)
downloadmupdf-246d59d7c4a41bda9ef28ca38eba3be5f67726cc.tar.xz
Forms: always use inherited version of default appearance
Diffstat (limited to 'pdf')
-rw-r--r--pdf/pdf_form.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pdf/pdf_form.c b/pdf/pdf_form.c
index 0db8b231..a60c3865 100644
--- a/pdf/pdf_form.c
+++ b/pdf/pdf_form.c
@@ -1434,7 +1434,7 @@ static void update_pushbutton_appearance(pdf_document *doc, pdf_obj *obj)
fz_rect clip = rect;
fz_rect bounds;
fz_matrix mat;
- char *da = pdf_to_str_buf(pdf_dict_gets(obj, "DA"));
+ char *da = pdf_to_str_buf(get_inheritable(doc, obj, "DA"));
char *text = pdf_to_str_buf(tobj);
clip.x0 += btotal;
@@ -2303,7 +2303,7 @@ void pdf_field_set_text_color(pdf_document *doc, pdf_obj *field, pdf_obj *col)
fz_context *ctx = doc->ctx;
da_info di;
fz_buffer *fzbuf = NULL;
- char *da = pdf_to_str_buf(pdf_dict_gets(field, "DA"));
+ char *da = pdf_to_str_buf(get_inheritable(doc, field, "DA"));
unsigned char *buf;
int len;
pdf_obj *daobj = NULL;