diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-07-29 23:07:06 +0000 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-07-29 23:07:06 +0000 |
commit | c3da7ee2bbc0106fb38de167c5b8dc09f8069995 (patch) | |
tree | 760cc509abe9bf3797b190a4777909200ad20544 | |
parent | ec1fad6acbc8836a04bf6a9a033e2ce526e90e88 (diff) | |
download | mupdf-c3da7ee2bbc0106fb38de167c5b8dc09f8069995.tar.xz |
Test return code from runxobject on softmasks.
-rw-r--r-- | mupdf/pdf_interpret.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mupdf/pdf_interpret.c b/mupdf/pdf_interpret.c index 90abe657..62b286a0 100644 --- a/mupdf/pdf_interpret.c +++ b/mupdf/pdf_interpret.c @@ -169,7 +169,9 @@ pdf_runxobject(pdf_csi *csi, fz_obj *resources, pdf_xobject *xobj) popmask = 1; csi->dev->beginmask(csi->dev->user, bbox, gstate->luminosity, nil, nil); - pdf_runxobject(csi, nil, softmask); + error = pdf_runxobject(csi, nil, softmask); + if (error) + return fz_rethrow(error, "cannot run softmask"); csi->dev->endmask(csi->dev->user); pdf_dropxobject(softmask); |