1
0
Fork 0

(svn r12776) -Fix: [OSX] In some rare cases when using an uncalibrated monitor the system colour space could not be retrieved. Show an error when this happens instead of just trying an assertion.

release/0.7
egladil 2008-04-18 21:21:25 +00:00
parent e5eac05c6e
commit 8e49daf3e1
1 changed files with 2 additions and 1 deletions

View File

@ -175,7 +175,8 @@ static CGColorSpaceRef QZ_GetCorrectColorSpace()
CMCloseProfile(sysProfile);
}
assert(colorSpace != NULL);
if (colorSpace == NULL)
error("Could not get system colour space. You might need to recalibrate your monitor.");
}
return colorSpace;