summaryrefslogtreecommitdiffhomepage
path: root/spline
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-08-01 11:20:44 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-08-01 11:20:44 +0200
commite71f7af1d619d02667c2bfb9f5fd0d925e534230 (patch)
tree3233779695f5f559e5392289a322bfb78a43dd3b /spline
parent4ffb8feee67856851351e972e33c72c025c2c29d (diff)
spline, video: get rid of needless casts
Diffstat (limited to 'spline')
-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);