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;