Fixed another bugs in curves vibrance and exposure

This commit is contained in:
Desmis
2018-02-07 18:37:06 +01:00
parent 35fb9e28c9
commit 4136a6ee03
2 changed files with 7 additions and 4 deletions

View File

@@ -452,12 +452,13 @@ void CurveFactory::curveskLocal(bool & localskutili, const std::vector<double>&
bool needed = false;
std::unique_ptr<DiagonalCurve> 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<DiagonalCurve> (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<double>&
bool needed = false;
std::unique_ptr<DiagonalCurve> 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<DiagonalCurve> (new DiagonalCurve(curvePoints, CURVES_MIN_POLY_POINTS / skip));
if (dCurve && !dCurve->isIdentity()) {
needed = true;
localexutili = true;
}
}