From 80d6490e6d54f822de6d36219ce08e6a8ad33137 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Wed, 28 Sep 2016 22:25:16 -0400 Subject: Hide internals of fz_colorspace The implementation does not need to be in the public API. --- source/fitz/stext-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/fitz/stext-device.c') diff --git a/source/fitz/stext-device.c b/source/fitz/stext-device.c index 88a9f669..007a6a2a 100644 --- a/source/fitz/stext-device.c +++ b/source/fitz/stext-device.c @@ -942,7 +942,7 @@ fz_stext_fill_image_mask(fz_context *ctx, fz_device *dev, fz_image *img, const f block->image = fz_keep_image(ctx, img); block->cspace = fz_keep_colorspace(ctx, cspace); if (cspace) - memcpy(block->colors, color, sizeof(block->colors[0])*cspace->n); + memcpy(block->colors, color, sizeof(block->colors[0])*fz_colorspace_n(ctx, cspace)); block->mat = *ctm; block->bbox.x0 = 0; block->bbox.y0 = 0; -- cgit v1.2.3