diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-10-28 08:30:40 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-10-28 08:30:40 +0200 |
commit | 8b56d691d7833bf6559503346384e227efd63175 (patch) | |
tree | 5afcc50ad2520f93e5afaf60c4125086184a0f36 /spline-widget | |
parent | e7ce17f9e2c1b4cc21663f54a6ed81a4d12755ef (diff) |
spline-widget: don't recalculate point value
Only apply snap for closeness check.
Diffstat (limited to 'spline-widget')
-rw-r--r-- | spline-widget/spline-widget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spline-widget/spline-widget.cpp b/spline-widget/spline-widget.cpp index 105efb77..975f26e5 100644 --- a/spline-widget/spline-widget.cpp +++ b/spline-widget/spline-widget.cpp @@ -379,7 +379,7 @@ void spline_widget::mouseMoveEvent(QMouseEvent *e) return QPoint(int(pix_.x()), int(pix_.y())); ); - QPointF new_pt = pixel_coord_to_point(pix); + QPointF new_pt = pixel_coord_to_point(e->pos()); if (i + 1 < points.size()) { |