From c7c8f68e3287a7c87a3cdf1140248b3d7aa3f06a Mon Sep 17 00:00:00 2001 From: Alberto Griggio Date: Tue, 20 Mar 2018 15:50:55 +0100 Subject: [PATCH] fixed segfault in the oog check when the gamut profile is null --- rtengine/improcfun.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/improcfun.cc b/rtengine/improcfun.cc index 44edd8b17..19d6cb6c1 100644 --- a/rtengine/improcfun.cc +++ b/rtengine/improcfun.cc @@ -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)); }