diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2014-08-11 15:45:11 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2014-08-11 15:45:11 +0200 |
commit | f3fe0fd47ff5477748357b77b3c90c665a460db4 (patch) | |
tree | 67e07d5757c6cc9504fb194f515b6a0a50861d1e | |
parent | 5e1c37f13c77b3c0694085d11179a4356ab72079 (diff) | |
download | mupdf-f3fe0fd47ff5477748357b77b3c90c665a460db4.tar.xz |
Fix commit: Minor optimization in test_device.
Invert the boolean test to mean what is actually intended.
Fixes bug 695419.
-rw-r--r-- | source/fitz/test-device.c | 2 |
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); |