From 69cc6ccb75c01087c0a4d42d09ace1687b9418a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 27 Jul 2021 21:53:24 +0200 Subject: [PATCH] Render symbols/labels for not rendered areas --- src/map/mapsforge/rastertile.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/map/mapsforge/rastertile.cpp b/src/map/mapsforge/rastertile.cpp index 9e35b538..58deccb4 100644 --- a/src/map/mapsforge/rastertile.cpp +++ b/src/map/mapsforge/rastertile.cpp @@ -146,7 +146,7 @@ void RasterTile::processAreaLabels(QList &textItems) const Style::TextRender *ti = 0; const Style::Symbol *si = 0; - if (!path.closed || !path.path.elementCount()) + if (!path.closed) continue; for (int j = 0; j < labels.size(); j++) { @@ -170,6 +170,9 @@ void RasterTile::processAreaLabels(QList &textItems) if (!ti && !si) continue; + if (!path.path.elementCount()) + path.path = painterPath(path.poly); + const QImage *img = si ? &si->img() : 0; const QFont *font = ti ? &ti->font() : 0; const QColor *color = ti ? &ti->fillColor() : 0;