fix: custom curves corruption

Fixes #2204
This commit is contained in:
Raphael Coeffic
2022-08-24 12:55:26 +10:00
committed by Peter Feerick
parent f9a59eff0d
commit 0e8f4e55b1
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -75,6 +75,7 @@ void CurveDataEdit::update()
? 100 ? 100
: points[curvePointsCount + i - 1]), : points[curvePointsCount + i - 1]),
[=](int32_t newValue) { [=](int32_t newValue) {
if (i == 0 || i == curvePointsCount - 1) return;
points[curvePointsCount + i - 1] = newValue; points[curvePointsCount + i - 1] = newValue;
SET_DIRTY(); SET_DIRTY();
curveEdit->updatePreview(); curveEdit->updatePreview();