From be032de287cf90d38e3f140558b7fa7e611ebbe0 Mon Sep 17 00:00:00 2001 From: Desmis Date: Tue, 8 May 2018 15:14:18 +0200 Subject: [PATCH] Fixed bug Free - Custom for gamma --- rtengine/iccstore.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rtengine/iccstore.cc b/rtengine/iccstore.cc index 7c69d60c0..25172add8 100644 --- a/rtengine/iccstore.cc +++ b/rtengine/iccstore.cc @@ -1042,7 +1042,7 @@ void rtengine::ICCStore::getGammaArray(const procparams::ColorManagementParams & { const double eps = 0.000000001; // not divide by zero - if (icm.freegamma && icm.gamma != "Free") { //if Free gamma selected with other than Free + if (icm.freegamma && icm.gamma != "Custom") { //if Free gamma selected with other than Free // gamma : ga[0],ga[1],ga[2],ga[3],ga[4],ga[5] by calcul if (icm.gamma == "BT709_g2.2_s4.5") { ga[0] = 2.22; //BT709 2.2 4.5 - my preferred as D.Coffin @@ -1623,7 +1623,7 @@ cmsHPROFILE rtengine::ICCStore::createCustomGammaOutputProfile(const procparams: gammaWs.precision(3); - if (icm.gamma == "Free") { + if (icm.gamma == "Custom") { if (icm.wprofile == "v4") { outPro = outPr + "_v4_" + std::to_string((float)icm.gampos) + " " + std::to_string((float)icm.slpos) + ".icc"; } else if (icm.wprofile == "v2" || icm.wprofile == "none") {