summaryrefslogtreecommitdiffhomepage
path: root/spline-widget/functionconfig.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'spline-widget/functionconfig.cpp')
-rw-r--r--spline-widget/functionconfig.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/spline-widget/functionconfig.cpp b/spline-widget/functionconfig.cpp
index 915510ca..2ac725f6 100644
--- a/spline-widget/functionconfig.cpp
+++ b/spline-widget/functionconfig.cpp
@@ -226,8 +226,9 @@ void Map::movePoint(int idx, QPointF pt)
if (idx >= 0 && idx < cur.input.size())
{
cur.input[idx] = pt;
+ // we don't allow points to be reordered, but sort due to possible caller logic error
+ std::stable_sort(cur.input.begin(), cur.input.end(), sortFn);
reload();
- // we don't allow points to be reordered, so no sort here
}
}