Browse Source

Fix new clang compiler warning

QGC4.4
Don Gagne 10 years ago
parent
commit
c4e18ecf25
  1. 2
      src/ui/map/Waypoint2DIcon.cc

2
src/ui/map/Waypoint2DIcon.cc

@ -307,7 +307,7 @@ void Waypoint2DIcon::paint(QPainter *painter, const QStyleOptionGraphicsItem *op
penDash.setWidth(1); penDash.setWidth(1);
//penDash.setStyle(Qt::DotLine); //penDash.setStyle(Qt::DotLine);
// A negative radius indicates counter-clockwise rotation, but we still want to draw it positive // 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) if (loiter > picture.width()/2)
{ {
painter->setPen(penBlack); painter->setPen(penBlack);

Loading…
Cancel
Save