summaryrefslogtreecommitdiff
path: root/source/pdf/pdf-appearance.c
diff options
context:
space:
mode:
authorPaul Gardiner <paulg.artifex@glidos.net>2013-08-02 12:28:37 +0100
committerPaul Gardiner <paulg.artifex@glidos.net>2013-08-02 12:28:37 +0100
commite27cb7840b7f7a1880806f0c3bdaae719ec01781 (patch)
tree1efc88aa0769b47eb3c80ae7ae4bc8a53e01587b /source/pdf/pdf-appearance.c
parent05c787d00dc552326c720bd0aadec7029d2ffc00 (diff)
downloadmupdf-e27cb7840b7f7a1880806f0c3bdaae719ec01781.tar.xz
Handle more color cases in DA handling
Diffstat (limited to 'source/pdf/pdf-appearance.c')
-rw-r--r--source/pdf/pdf-appearance.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/pdf/pdf-appearance.c b/source/pdf/pdf-appearance.c
index 8c2c85bf..53fe3627 100644
--- a/source/pdf/pdf-appearance.c
+++ b/source/pdf/pdf-appearance.c
@@ -127,6 +127,11 @@ void pdf_parse_da(fz_context *ctx, char *da, pdf_da_info *di)
di->col[2] = stack[2];
di->col_size = 3;
}
+ else if (!strcmp(lbuf.scratch, "g"))
+ {
+ di->col[0] = stack[0];
+ di->col_size = 1;
+ }
fz_free(ctx, name);
name = NULL;