diff --git a/ground/openpilotgcs/src/libs/opmapcontrol/src/mapwidget/waypointcircle.cpp b/ground/openpilotgcs/src/libs/opmapcontrol/src/mapwidget/waypointcircle.cpp index 33b7276f7..17c060037 100644 --- a/ground/openpilotgcs/src/libs/opmapcontrol/src/mapwidget/waypointcircle.cpp +++ b/ground/openpilotgcs/src/libs/opmapcontrol/src/mapwidget/waypointcircle.cpp @@ -67,10 +67,10 @@ void WayPointCircle::paint(QPainter *painter, const QStyleOptionGraphicsItem *op p2 = QPointF(line.p1().x(), line.p1().y() - line.length()); QPen myPen = pen(); myPen.setColor(myColor); - if(width > 0) { + if (width > 0) { myPen.setWidth(width); } - if(dashed){ + if (dashed) { QVector dashes; dashes << 4 << 8; myPen.setDashPattern(dashes); diff --git a/ground/openpilotgcs/src/libs/opmapcontrol/src/mapwidget/waypointline.cpp b/ground/openpilotgcs/src/libs/opmapcontrol/src/mapwidget/waypointline.cpp index 4d656a5c4..df237387d 100644 --- a/ground/openpilotgcs/src/libs/opmapcontrol/src/mapwidget/waypointline.cpp +++ b/ground/openpilotgcs/src/libs/opmapcontrol/src/mapwidget/waypointline.cpp @@ -99,14 +99,13 @@ void WayPointLine::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti arrowHead << line().pointAt(0.5) << arrowP1 << arrowP2; painter->drawPolygon(arrowHead); - if(dashed) - { + if (dashed) { QVector dashes; dashes << 4 << 8; myPen.setDashPattern(dashes); } - if(lineWidth == -1) { + if (lineWidth == -1) { if (myColor == Qt::red) { myPen.setWidth(3); } else if (myColor == Qt::yellow) { @@ -114,9 +113,8 @@ void WayPointLine::paint(QPainter *painter, const QStyleOptionGraphicsItem *opti } else if (myColor == Qt::green) { myPen.setWidth(1); } - } - else { - myPen.setWidth(lineWidth); + } else { + myPen.setWidth(lineWidth); } painter->setPen(myPen); painter->drawLine(line());