Skip to content

Commit

Permalink
Fixed compilation issue under Ubuntu 20.04
Browse files Browse the repository at this point in the history
  • Loading branch information
foldynl committed Mar 19, 2024
1 parent e2022fe commit 8c164e7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ui/MapWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ void MapWidget::drawLine(const QPoint &pointA, const QPoint &pointB)
items << scene->addPath(QPainterPath(path), QPen(QColor(255, 0, 0)),
QBrush(QColor(255, 0, 0), Qt::SolidPattern));

#if (QT_VERSION >= QT_VERSION_CHECK(5, 13, 0))
path.clear();
#else /* Due to ubuntu 20.04 where qt5.12 is present */
path = QPainterPath();
#endif
path.moveTo(radToPoint(lat, -1 * endpoint));
}
const QPoint &p = radToPoint(lat, lon);
Expand Down

0 comments on commit 8c164e7

Please sign in to comment.