From 05e83a06bbbc6fe68596b2925f0fb091933a70db Mon Sep 17 00:00:00 2001 From: Emil Martinec Date: Sat, 30 Oct 2010 10:29:47 -0500 Subject: [PATCH] Patch for the last patch. --- rtengine/curves.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtengine/curves.cc b/rtengine/curves.cc index fbd4ed4a2..236c95b58 100644 --- a/rtengine/curves.cc +++ b/rtengine/curves.cc @@ -732,7 +732,7 @@ void CurveFactory::complexCurve (double ecomp, double black, double hlcompr, dou //float toey = MAX(0,toex*a*def_mul*(shcompr/25.0-1)); float toex = black; float toey = MAX(0,toex*(shcompr/25.0-1)); - float shoulderx = MIN(black,1/(a*def_mul));//point in x at which line of slope a starting at (0,0) reaches y=1 + float shoulderx = MAX(black,1/(a*def_mul));//point in x at which line of slope a starting at (0,0) reaches y=1 float shouldery=1; float toneslope=(shouldery-toey)/(shoulderx-toex); if (shoulderx<1) {//a>1; positive EC