diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-06-09 15:56:16 +0100 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2017-06-11 11:42:50 +0100 |
commit | c0e04d9c40be49b7dd7ac0fa4202d50524456144 (patch) | |
tree | 0aa8591edecf365361ef1b9bf2c05892dfd39582 /source/fitz | |
parent | 39d641015af4b1fd63cc8bf05289b4aec7cfd3ed (diff) | |
download | mupdf-c0e04d9c40be49b7dd7ac0fa4202d50524456144.tar.xz |
When loading indexed PNG images, get the colorspace right.
Diffstat (limited to 'source/fitz')
-rw-r--r-- | source/fitz/load-png.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/load-png.c b/source/fitz/load-png.c index 65935b8d..a89701b4 100644 --- a/source/fitz/load-png.c +++ b/source/fitz/load-png.c @@ -618,7 +618,7 @@ fz_load_png_info(fz_context *ctx, unsigned char *p, size_t total, int *wp, int * png_read_image(ctx, &png, p, total, 1); - if (png.n == 3 || png.n == 4) + if (png.n == 3 || png.n == 4 || png.indexed) *cspacep = fz_device_rgb(ctx); else *cspacep = fz_device_gray(ctx); |