From 385b171b8bef464bbf652c81d85728ccb064ab86 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 7 Feb 2011 16:10:08 +0000 Subject: Keep the pointer to the image mask when expanding indexed images to full color. --- mupdf/pdf_colorspace.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit v1.2.3