diff options
author | Marti Maria <info@littlecms.com> | 2011-04-05 17:05:31 +0200 |
---|---|---|
committer | Marti Maria <info@littlecms.com> | 2011-04-05 17:05:31 +0200 |
commit | 347e78ed167371361e6b707c6804db6b1f609c14 (patch) | |
tree | 46f504fd33088d58f43fdbe6fd25cb858a08c232 /src/cmscnvrt.c | |
parent | 900e457fe3902a83fc6cd9722b8b30f8532c06fb (diff) | |
download | lcms2-347e78ed167371361e6b707c6804db6b1f609c14.tar.gz |
2.2 additions and some bugfixing
Diffstat (limited to 'src/cmscnvrt.c')
-rw-r--r-- | src/cmscnvrt.c | 5 |
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 |