From d12ce949137ccfc50369c919efca30c336d533b5 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 30 Apr 2017 20:59:32 +0200 Subject: spline/widget: fix moving points close together They disappeared and clumped together. --- spline/spline-widget.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'spline') diff --git a/spline/spline-widget.cpp b/spline/spline-widget.cpp index 2a4c07c5..90a8a68a 100644 --- a/spline/spline-widget.cpp +++ b/spline/spline-widget.cpp @@ -425,10 +425,8 @@ void spline_widget::mouseMoveEvent(QMouseEvent *e) overlap |= pix.x() - other_pix.x() < point_pixel_closeness_limit; } - if (overlap) - new_pt.setX(points[i].x()); - - _config->move_point(i, new_pt); + if (!overlap) + _config->move_point(i, new_pt); _draw_function = true; setCursor(Qt::ClosedHandCursor); -- cgit v1.2.3