summaryrefslogtreecommitdiffhomepage
path: root/spline/spline-widget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'spline/spline-widget.cpp')
-rw-r--r--spline/spline-widget.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/spline/spline-widget.cpp b/spline/spline-widget.cpp
index 96a22d95..0ae3766d 100644
--- a/spline/spline-widget.cpp
+++ b/spline/spline-widget.cpp
@@ -155,8 +155,7 @@ void spline_widget::drawFunction()
moving_control_point_idx < points.size())
{
const QPen pen(Qt::white, 1, Qt::SolidLine, Qt::FlatCap);
- const QPointF prev_ = point_to_pixel({});
- QPointF prev(iround(prev_.x()), iround(prev_.y()));
+ QPointF prev = point_to_pixel({});
for (const auto& point : points)
{
const QPointF tmp = point_to_pixel(point);