diff options
author | Tor Andersson <tor@ghostscript.com> | 2010-09-27 10:42:36 +0000 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2010-09-27 10:42:36 +0000 |
commit | a50edd91852a104a0f7d2e85187fbaefc6cc8a33 (patch) | |
tree | bfc6b6dc201bc0ef9dbcc0fb4e671b01e8a3df03 | |
parent | 2e98609679560cd84d85142145277bde86cba401 (diff) | |
download | mupdf-a50edd91852a104a0f7d2e85187fbaefc6cc8a33.tar.xz |
Fix typo that caused image masks to be dropped from indexed images.
-rw-r--r-- | mupdf/pdf_image.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mupdf/pdf_image.c b/mupdf/pdf_image.c index c0a59584..6021da09 100644 --- a/mupdf/pdf_image.c +++ b/mupdf/pdf_image.c @@ -193,8 +193,6 @@ pdf_loadimageimp(fz_pixmap **imgp, pdf_xref *xref, fz_obj *rdb, fz_obj *dict, fz tile = fz_newpixmap(colorspace, 0, 0, w, h); - tile->mask = mask; - scale = 1; if (!indexed) { @@ -229,6 +227,8 @@ pdf_loadimageimp(fz_pixmap **imgp, pdf_xref *xref, fz_obj *rdb, fz_obj *dict, fz if (colorspace) fz_dropcolorspace(colorspace); + tile->mask = mask; + fz_free(samples); *imgp = tile; |