diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-23 02:33:32 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-26 23:03:32 +0200 |
commit | d37ce65ef1c224317b26664e0211aa2f82c18099 (patch) | |
tree | 9ffa0908915befd2707625ef55e8216d1f607914 /spline/spline.cpp | |
parent | c26eeb45c905d985aba199e631651e69fcc10083 (diff) |
spline/widget: fix drag-too-close handling
Dragging toward adjacent point makes sure it's as close
as allowed.
Work against any remaining cases where points "merged".
Diffstat (limited to 'spline/spline.cpp')
-rw-r--r-- | spline/spline.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/spline/spline.cpp b/spline/spline.cpp index cb2d5deb..6c3a88bf 100644 --- a/spline/spline.cpp +++ b/spline/spline.cpp @@ -286,7 +286,6 @@ void spline::move_point(int idx, QPointF pt) if (idx >= 0 && idx < sz) { points[idx] = pt; - // we don't allow points to be reordered, but sort due to possible caller logic error std::stable_sort(points.begin(), points.end(), sort_fn); s->points = points; validp = false; |