From de98047ae2346d47b6121894c3086c8cb16742c9 Mon Sep 17 00:00:00 2001 From: Hombre Date: Sat, 21 Jan 2017 16:41:59 +0100 Subject: [PATCH] Solving issue #3506 (bugfix from mmmtok) --- rtengine/iplab2rgb.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtengine/iplab2rgb.cc b/rtengine/iplab2rgb.cc index 218dbf6fe..f970e3a54 100644 --- a/rtengine/iplab2rgb.cc +++ b/rtengine/iplab2rgb.cc @@ -144,7 +144,6 @@ Image8* ImProcFunctions::lab2rgb (LabImage* lab, int cx, int cy, int cw, int ch, Image8* image = new Image8 (cw, ch); Glib::ustring profile; - cmsHPROFILE oprof = iccStore->getProfile (profile); bool standard_gamma; @@ -159,6 +158,8 @@ Image8* ImProcFunctions::lab2rgb (LabImage* lab, int cx, int cy, int cw, int ch, standard_gamma = false; } + cmsHPROFILE oprof = iccStore->getProfile (profile); + if (oprof) { cmsHPROFILE oprofG = oprof;