summaryrefslogtreecommitdiff
path: root/source/fitz/image.c
diff options
context:
space:
mode:
authorRobin Watts <Robin.Watts@artifex.com>2016-09-28 22:25:16 -0400
committerRobin Watts <robin.watts@artifex.com>2016-10-06 11:54:10 +0100
commit80d6490e6d54f822de6d36219ce08e6a8ad33137 (patch)
treeb3b5bf787b1454e82275be0b452c4edc8ce432de /source/fitz/image.c
parent994770e2010e21cd8f90bacc34b9fae8a6350a40 (diff)
downloadmupdf-80d6490e6d54f822de6d36219ce08e6a8ad33137.tar.xz
Hide internals of fz_colorspace
The implementation does not need to be in the public API.
Diffstat (limited to 'source/fitz/image.c')
-rw-r--r--source/fitz/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/fitz/image.c b/source/fitz/image.c
index 8d692fbd..77344a16 100644
--- a/source/fitz/image.c
+++ b/source/fitz/image.c
@@ -784,7 +784,7 @@ fz_new_image(fz_context *ctx, int w, int h, int bpc, fz_colorspace *colorspace,
image->xres = xres;
image->yres = yres;
image->bpc = bpc;
- image->n = (colorspace ? colorspace->n : 1);
+ image->n = (colorspace ? fz_colorspace_n(ctx, colorspace) : 1);
image->colorspace = fz_keep_colorspace(ctx, colorspace);
image->invert_cmyk_jpeg = 1;
image->interpolate = interpolate;