Commit 85622209 authored by Marcel Wiesweg's avatar Marcel Wiesweg
Browse files

Properly initialize a smooth curve to be linear. Last point was set as first point.

The bug only appeared in BQM's B&W conversion which only uses the luminosity channel,
taking the default constructed CurvesContainer for the other colors.

CCBUG: 281095
parent 76de9f0a
......@@ -108,7 +108,7 @@ void CurvesContainer::initialize()
// First and last points init.
values[i].setPoint(0, 0, 0);
values[i].setPoint(0, segmentMax, segmentMax);
values[i].setPoint(ImageCurves::NUM_POINTS - 1, segmentMax, segmentMax);
}
}
}
......
......@@ -277,8 +277,8 @@ void ImageCurves::fillFromOtherCurves(ImageCurves* const otherCurves)
{
p.setX(p.x() / MULTIPLIER_16BIT);
p.setY(p.y() / MULTIPLIER_16BIT);
//kDebug() << "Setting curve point " << point << " to " << p;
setCurvePoint(channel, point, p);
//kDebug() << "Setting curve point " << point << " to " << getCurvePoint(channel, point);
}
else
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment