fixed segfault in the oog check when the gamut profile is null

This commit is contained in:
Alberto Griggio 2018-03-20 15:50:55 +01:00
parent 17dc4af424
commit c7c8f68e32

View File

@ -377,7 +377,7 @@ void ImProcFunctions::updateColorProfiles (const Glib::ustring& monitorProfile,
monitorTransform = cmsCreateTransform (iprof, TYPE_Lab_FLT, monitor, TYPE_RGB_8, monitorIntent, flags);
}
if (gamutCheck) {
if (gamutCheck && gamutprof) {
gamutWarning.reset(new GamutWarning(iprof, gamutprof, gamutintent, gamutbpc));
}