summaryrefslogtreecommitdiff
path: root/source/fitz/test-device.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2014-08-11 15:45:11 +0200
committerTor Andersson <tor.andersson@artifex.com>2014-08-11 15:45:11 +0200
commitf3fe0fd47ff5477748357b77b3c90c665a460db4 (patch)
tree67e07d5757c6cc9504fb194f515b6a0a50861d1e /source/fitz/test-device.c
parent5e1c37f13c77b3c0694085d11179a4356ab72079 (diff)
downloadmupdf-f3fe0fd47ff5477748357b77b3c90c665a460db4.tar.xz
Fix commit: Minor optimization in test_device.
Invert the boolean test to mean what is actually intended. Fixes bug 695419.
Diffstat (limited to 'source/fitz/test-device.c')
-rw-r--r--source/fitz/test-device.c2
1 files changed, 1 insertions, 1 deletions
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);