summaryrefslogtreecommitdiff
path: root/src/cmscnvrt.c
diff options
context:
space:
mode:
authorMarti Maria <info@littlecms.com>2011-04-05 17:05:31 +0200
committerMarti Maria <info@littlecms.com>2011-04-05 17:05:31 +0200
commit347e78ed167371361e6b707c6804db6b1f609c14 (patch)
tree46f504fd33088d58f43fdbe6fd25cb858a08c232 /src/cmscnvrt.c
parent900e457fe3902a83fc6cd9722b8b30f8532c06fb (diff)
downloadlcms2-347e78ed167371361e6b707c6804db6b1f609c14.tar.gz
2.2 additions and some bugfixing
Diffstat (limited to 'src/cmscnvrt.c')
-rw-r--r--src/cmscnvrt.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmscnvrt.c b/src/cmscnvrt.c
index 5c76d27..9490a9e 100644
--- a/src/cmscnvrt.c
+++ b/src/cmscnvrt.c
@@ -1,7 +1,7 @@
//---------------------------------------------------------------------------------
//
// Little Color Management System
-// Copyright (c) 1998-2010 Marti Maria Saguer
+// Copyright (c) 1998-2011 Marti Maria Saguer
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the "Software"),
@@ -847,7 +847,8 @@ cmsPipeline* BlackPreservingKPlaneIntents(cmsContext ContextID,
// Check for non-cmyk profiles
if (cmsGetColorSpace(hProfiles[0]) != cmsSigCmykData ||
- cmsGetColorSpace(hProfiles[nProfiles-1]) != cmsSigCmykData)
+ 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