diff options
-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")) |