summaryrefslogtreecommitdiff
path: root/testbed
diff options
context:
space:
mode:
authorMarti Maria <info@littlecms.com>2017-03-13 12:59:30 +0100
committerMarti Maria <info@littlecms.com>2017-03-13 12:59:30 +0100
commit4e2015dbb09be4e2ac710bbd00ff4254fdc170b8 (patch)
tree00cf09274435952c3960ae63854f2f6d921b9aaf /testbed
parenta99291c5bdaaf1637c2b3389c3deae76c61ce157 (diff)
downloadlcms2-4e2015dbb09be4e2ac710bbd00ff4254fdc170b8.tar.gz
Fix NULL profile builtin
Now the NULL builtin profile can be saved and is fully conformant. Previous profile could be regarded as corrupted as was using a 3->3 lut for Lab to gray
Diffstat (limited to 'testbed')
-rw-r--r--testbed/testcms2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/testbed/testcms2.c b/testbed/testcms2.c
index e7f227a..0209ac0 100644
--- a/testbed/testcms2.c
+++ b/testbed/testcms2.c
@@ -8096,7 +8096,6 @@ int CheckProofingIntersection(void)
cmsHPROFILE profile_null, hnd1, hnd2;
cmsHTRANSFORM transform;
-
hnd1 = cmsCreate_sRGBProfile();
hnd2 = Create_AboveRGB();
@@ -8117,10 +8116,10 @@ int CheckProofingIntersection(void)
cmsCloseProfile(profile_null);
// Failed?
- if (transform == NULL) return 0;
+ if (transform == NULL) return 1;
cmsDeleteTransform(transform);
- return 1;
+ return 0;
}
// --------------------------------------------------------------------------------------------------
@@ -8541,6 +8540,7 @@ int main(int argc, char* argv[])
_CrtSetDbgFlag ( _CRTDBG_ALLOC_MEM_DF | _CRTDBG_LEAK_CHECK_DF );
#endif
+
// First of all, check for the right header
if (cmsGetEncodedCMMversion() != LCMS_VERSION) {
Die("Oops, you are mixing header and shared lib!\nHeader version reports to be '%d' and shared lib '%d'\n", LCMS_VERSION, cmsGetEncodedCMMversion());