Fixed Camera standard or ICC crashes on non-existing profile

on behalf of Hombre; see issue 1045
This commit is contained in:
Oliver Duis
2011-10-18 21:35:37 +02:00
parent 4302eeecbe
commit ad7c97202c

View File

@@ -180,7 +180,7 @@ cmsHPROFILE ICCStore::getStdProfile (Glib::ustring name) {
std::map<std::string, cmsHPROFILE>::iterator r = fileStdProfiles.find (name.uppercase());
if (r==fileProfiles.end()) return NULL;
if (r==fileStdProfiles.end()) return NULL;
return r->second;
}