diff options
author | Paul Gardiner <paul@glidos.net> | 2012-06-15 11:40:12 +0100 |
---|---|---|
committer | Paul Gardiner <paul@glidos.net> | 2012-06-15 11:40:12 +0100 |
commit | 7f04d49cf7857be483c3f0018d32e2714d344944 (patch) | |
tree | 0fb36d45b3b023ce9316771912f0cd6ad7ee37cc /pdf/pdf_form.c | |
parent | 9f2465bef0fad8543059354e733dfa769a36aefd (diff) | |
download | mupdf-7f04d49cf7857be483c3f0018d32e2714d344944.tar.xz |
Forms: Assume black if default appearance doesn't specify a color
Diffstat (limited to 'pdf/pdf_form.c')
-rw-r--r-- | pdf/pdf_form.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pdf/pdf_form.c b/pdf/pdf_form.c index dc00aae8..e9f6d0ef 100644 --- a/pdf/pdf_form.c +++ b/pdf/pdf_form.c @@ -389,6 +389,8 @@ static void fzbuf_print_da(fz_context *ctx, fz_buffer *fzbuf, da_info *di) if (di->col_size != 0) fz_buffer_printf(ctx, fzbuf, " %f %f %f rg", di->col[0], di->col[1], di->col[2]); + else + fz_buffer_printf(ctx, fzbuf, " 0 g"); } static fz_rect measure_text(pdf_document *doc, font_info *font_rec, fz_matrix *tm, char *text) |