summaryrefslogtreecommitdiffhomepage
path: root/spline
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-04-30 20:59:32 +0200
committerStanislaw Halik <sthalik@misaki.pl>2017-04-30 20:59:32 +0200
commitd12ce949137ccfc50369c919efca30c336d533b5 (patch)
tree2ef4657953c802cec94f8ea8cafa7ca72848dc24 /spline
parentfed231d5fe5ec690ed0483d77b432fad852b630d (diff)
spline/widget: fix moving points close together
They disappeared and clumped together.
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);