modules: verify that GimpColorConfig.rgb_profile is actually for RGB

This commit is contained in:
Michael Natterer
2014-03-23 21:16:39 +01:00
parent 4f10ff3ad4
commit 191b2aa2e8

View File

@ -411,6 +411,12 @@ cdisplay_lcms_get_rgb_profile (CdisplayLcms *lcms)
if (config->rgb_profile)
profile = cmsOpenProfileFromFile (config->rgb_profile, "r");
if (profile && ! gimp_lcms_profile_is_rgb (profile))
{
cmsCloseProfile (profile);
profile = NULL;
}
}
return profile;