diff options
author | Robin Watts <robin.watts@artifex.com> | 2013-04-10 17:53:30 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2013-04-10 18:19:33 +0100 |
commit | b8f786e69e37ca402a2fb35e1eb75839cc4c74d0 (patch) | |
tree | 7d0b0cea2388c85fdad4da8cb9fc5d60dd720510 /pdf | |
parent | 6ddde649c594c254ffbb101ef8b8ee8b005992a8 (diff) | |
download | mupdf-b8f786e69e37ca402a2fb35e1eb75839cc4c74d0.tar.xz |
Treat missing TR in SoftMask as identity.
Diffstat (limited to 'pdf')
-rw-r--r-- | pdf/pdf_interpret.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pdf/pdf_interpret.c b/pdf/pdf_interpret.c index d5bf4cd2..0513c622 100644 --- a/pdf/pdf_interpret.c +++ b/pdf/pdf_interpret.c @@ -1633,7 +1633,7 @@ pdf_run_extgstate(pdf_csi *csi, pdf_obj *rdb, pdf_obj *extgstate) gstate->luminosity = 0; tr = pdf_dict_gets(val, "TR"); - if (strcmp(pdf_to_name(tr), "Identity")) + if (tr && strcmp(pdf_to_name(tr), "Identity")) fz_warn(ctx, "ignoring transfer function"); } else if (pdf_is_name(val) && !strcmp(pdf_to_name(val), "None")) |