diff options
author | Tor Andersson <tor@ghostscript.com> | 2011-02-07 16:10:08 +0000 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2011-02-07 16:10:08 +0000 |
commit | 385b171b8bef464bbf652c81d85728ccb064ab86 (patch) | |
tree | cd78c62f3cb38de72ddfb0dfaf7a19b6e1d944ad | |
parent | 687313e0cbf883019b3db3777a8df1ff0698788e (diff) | |
download | mupdf-385b171b8bef464bbf652c81d85728ccb064ab86.tar.xz |
Keep the pointer to the image mask when expanding indexed images to full color.
-rw-r--r-- | mupdf/pdf_colorspace.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mupdf/pdf_colorspace.c b/mupdf/pdf_colorspace.c index 447b3047..4fb0c54d 100644 --- a/mupdf/pdf_colorspace.c +++ b/mupdf/pdf_colorspace.c @@ -227,6 +227,9 @@ pdf_expandindexedpixmap(fz_pixmap *src) } } + if (src->mask) + dst->mask = fz_keeppixmap(src->mask); + return dst; } |