summaryrefslogtreecommitdiffhomepage
path: root/spline-widget
diff options
context:
space:
mode:
Diffstat (limited to 'spline-widget')
-rw-r--r--spline-widget/spline-widget.cpp2
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())
{