diff --git a/src/map/mapsforge/rastertile.cpp b/src/map/mapsforge/rastertile.cpp index 2427e4ec..04d0314d 100644 --- a/src/map/mapsforge/rastertile.cpp +++ b/src/map/mapsforge/rastertile.cpp @@ -161,7 +161,6 @@ void RasterTile::processAreaLabels(const QVector &paths, QList labels(_style->areaLabels(_zoom)); QList symbols(_style->areaSymbols(_zoom)); QList items; - QSet set; for (int i = 0; i < paths.size(); i++) { const PainterPath &path = paths.at(i); @@ -207,17 +206,12 @@ void RasterTile::processAreaLabels(const QVector &paths, QPointF pos = p.p->path->labelPos.isNull() ? centroid(p.p->pp) : ll2xy(p.p->path->labelPos); - if (p.ti && p.lbl && set.contains(*p.lbl)) - continue; - PointItem *item = new PointItem(pos.toPoint(), p.lbl, font, img, color, hColor); if (item->isValid() && rectNearPolygon(p.p->pp, item->boundingRect()) - && !item->collides(textItems)) { + && !item->collides(textItems)) textItems.append(item); - if (p.ti && p.lbl) - set.insert(*p.lbl); - } else + else delete item; } }