From d5c15e19fb73cadab206f9602dc676a3f71cc8c6 Mon Sep 17 00:00:00 2001 From: jdc Date: Sat, 15 Dec 2012 09:39:01 +0100 Subject: [PATCH] Fix for 'avoid color shift' in Labadjustements and 'gamut control' in CIECAM --- rtengine/improcfun.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtengine/improcfun.cc b/rtengine/improcfun.cc index 019b84670..4e27d7716 100644 --- a/rtengine/improcfun.cc +++ b/rtengine/improcfun.cc @@ -1484,7 +1484,8 @@ void ImProcFunctions::chromiLuminanceCurve (int pW, LabImage* lold, LabImage* ln bool ccut = ccutili; double rstprotection = 100.-params->labCurve.rstprotection; // Red and Skin Tones Protection // avoid color shift is disabled when bwToning is activated and enabled if gamut is true in colorappearanace - bool avoidColorShift = (params->labCurve.avoidcolorshift || params->colorappearance.gamut )&& !bwToning ; +// bool avoidColorShift = (params->labCurve.avoidcolorshift || params->colorappearance.gamut )&& !bwToning ; + bool avoidColorShift = (params->labCurve.avoidcolorshift || (params->colorappearance.gamut && params->colorappearance.enabled)) && !bwToning ; int protectRed = settings->protectred; double protectRedH = settings->protectredh; bool gamutLch = settings->gamutLch;