From f3fe0fd47ff5477748357b77b3c90c665a460db4 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Mon, 11 Aug 2014 15:45:11 +0200 Subject: Fix commit: Minor optimization in test_device. Invert the boolean test to mean what is actually intended. Fixes bug 695419. --- source/fitz/test-device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/fitz') diff --git a/source/fitz/test-device.c b/source/fitz/test-device.c index fd1fcd73..ffa3917b 100644 --- a/source/fitz/test-device.c +++ b/source/fitz/test-device.c @@ -10,7 +10,7 @@ fz_test_colorspace(fz_context *ctx, fz_colorspace *colorspace, int *iscolor) static void fz_test_color(fz_context *ctx, fz_colorspace *colorspace, float *color, int *iscolor) { - if (*iscolor != 0 && colorspace && colorspace != fz_device_gray(ctx)) + if (!*iscolor && colorspace && colorspace != fz_device_gray(ctx)) { float rgb[3]; fz_convert_color(ctx, fz_device_rgb(ctx), rgb, colorspace, color); -- cgit v1.2.3