From 2bd25dd9b0c9620daf86f016c15698ffb518ec6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 25 Apr 2023 23:33:54 +0200 Subject: [PATCH] Fixed build with Qt < 5.13 --- src/map/mapsforge/rastertile.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/map/mapsforge/rastertile.cpp b/src/map/mapsforge/rastertile.cpp index 9487aa74..84c7d5ad 100644 --- a/src/map/mapsforge/rastertile.cpp +++ b/src/map/mapsforge/rastertile.cpp @@ -200,10 +200,12 @@ QPainterPath RasterTile::painterPath(const Polygon &polygon, bool curve) const { QPainterPath path; +#if QT_VERSION >= QT_VERSION_CHECK(5, 13, 0) int size = 0; for (int i = 0; i < polygon.size(); i++) size += polygon.at(i).size(); path.reserve(size); +#endif // QT 5.13 for (int i = 0; i < polygon.size(); i++) { const QVector &subpath = polygon.at(i);