summaryrefslogtreecommitdiff
path: root/src/cmscnvrt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmscnvrt.c')
-rw-r--r--src/cmscnvrt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmscnvrt.c b/src/cmscnvrt.c
index e184e20..647a60e 100644
--- a/src/cmscnvrt.c
+++ b/src/cmscnvrt.c
@@ -863,8 +863,8 @@ cmsPipeline* BlackPreservingKPlaneIntents(cmsContext ContextID,
// Check for non-cmyk profiles
if (cmsGetColorSpace(hProfiles[0]) != cmsSigCmykData ||
- cmsGetColorSpace(hProfiles[nProfiles-1]) != cmsSigCmykData ||
- cmsGetDeviceClass(hProfiles[nProfiles-1]) != cmsSigOutputClass)
+ !(cmsGetColorSpace(hProfiles[nProfiles-1]) == cmsSigCmykData ||
+ cmsGetDeviceClass(hProfiles[nProfiles-1]) == cmsSigOutputClass))
return DefaultICCintents(ContextID, nProfiles, ICCIntents, hProfiles, BPC, AdaptationStates, dwFlags);
// Allocate an empty LUT for holding the result