summaryrefslogtreecommitdiffhomepage
path: root/spline
diff options
context:
space:
mode:
Diffstat (limited to 'spline')
-rw-r--r--spline/spline-widget.cpp6
1 files changed, 2 insertions, 4 deletions
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);