diff --git a/rtengine/curves.cc b/rtengine/curves.cc index 47c9316bb..e35f081fd 100644 --- a/rtengine/curves.cc +++ b/rtengine/curves.cc @@ -1157,7 +1157,9 @@ void CurveFactory::complexCurvelocal(double ecomp, double black, double hlcompr, // check if brightness curve is needed if (br > 0.00001 || br < -0.00001) { // utili = true; - br /= 4.f;//to avoid artifacts in some cases + if(br > 0) { + br /= 4.f;//to avoid artifacts in some cases + } std::vector brightcurvePoints; brightcurvePoints.resize(9); brightcurvePoints.at(0) = double (DCT_NURBS);