From c4e18ecf2593c56ba9028e0f2adec10f63ba2bd9 Mon Sep 17 00:00:00 2001 From: Don Gagne Date: Fri, 10 Apr 2015 09:04:06 -0700 Subject: [PATCH] Fix new clang compiler warning --- src/ui/map/Waypoint2DIcon.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/map/Waypoint2DIcon.cc b/src/ui/map/Waypoint2DIcon.cc index 9a776439c..50204777b 100644 --- a/src/ui/map/Waypoint2DIcon.cc +++ b/src/ui/map/Waypoint2DIcon.cc @@ -307,7 +307,7 @@ void Waypoint2DIcon::paint(QPainter *painter, const QStyleOptionGraphicsItem *op penDash.setWidth(1); //penDash.setStyle(Qt::DotLine); // A negative radius indicates counter-clockwise rotation, but we still want to draw it positive - const int loiter = map->metersToPixels(fabsf(waypoint->getLoiterOrbit()), Coord()); + const int loiter = map->metersToPixels(fabs(waypoint->getLoiterOrbit()), Coord()); if (loiter > picture.width()/2) { painter->setPen(penBlack); -- 2.22.0