From 4136a6ee037366b50ecf406e6421c281b97fa814 Mon Sep 17 00:00:00 2001 From: Desmis Date: Wed, 7 Feb 2018 18:37:06 +0100 Subject: [PATCH] Fixed another bugs in curves vibrance and exposure --- rtengine/curves.cc | 9 ++++++--- rtengine/improccoordinator.cc | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/rtengine/curves.cc b/rtengine/curves.cc index 74800b530..e6a2bafd5 100644 --- a/rtengine/curves.cc +++ b/rtengine/curves.cc @@ -452,12 +452,13 @@ void CurveFactory::curveskLocal(bool & localskutili, const std::vector& bool needed = false; std::unique_ptr dCurve; - if (localskutili && !curvePoints.empty() && curvePoints[0] != 0) { +// if (localskutili && !curvePoints.empty() && curvePoints[0] != 0) { + if (!curvePoints.empty() && curvePoints[0] != 0) { dCurve = std::unique_ptr (new DiagonalCurve(curvePoints, CURVES_MIN_POLY_POINTS / skip)); if (dCurve && !dCurve->isIdentity()) { needed = true; - // localskutili = true; + localskutili = true; } } @@ -470,11 +471,13 @@ void CurveFactory::curveexLocal(bool & localexutili, const std::vector& bool needed = false; std::unique_ptr dCurve; - if (localexutili && !curvePoints.empty() && curvePoints[0] != 0) { +// if (localexutili && !curvePoints.empty() && curvePoints[0] != 0) { + if (!curvePoints.empty() && curvePoints[0] != 0) { dCurve = std::unique_ptr (new DiagonalCurve(curvePoints, CURVES_MIN_POLY_POINTS / skip)); if (dCurve && !dCurve->isIdentity()) { needed = true; + localexutili = true; } } diff --git a/rtengine/improccoordinator.cc b/rtengine/improccoordinator.cc index 74c5077f8..03bc35319 100644 --- a/rtengine/improccoordinator.cc +++ b/rtengine/improccoordinator.cc @@ -3347,7 +3347,7 @@ void ImProcCoordinator::updatePreviewImage(int todo, Crop* cropCall) std::string t_none2 = "0A@"; if (skinstr[sp].c_str() != t_curvskinref2 && skinstr[sp].c_str() != t_none2) { - localskutili = true; + // localskutili = true; } std::string t_curvexref2 = "3000A0B0C1000D1000E@";