From 8507fe3b5223f8dc61172df5b2f8fcac8383b19e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 22 Oct 2020 01:16:23 +0200 Subject: [PATCH] Added missing collision detection --- src/map/IMG/rastertile.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/map/IMG/rastertile.cpp b/src/map/IMG/rastertile.cpp index 6b43f917..2c0495e0 100644 --- a/src/map/IMG/rastertile.cpp +++ b/src/map/IMG/rastertile.cpp @@ -271,6 +271,7 @@ void RasterTile::processPolygons(QList &textItems) centroid(poly.points).toPoint(), &poly.label.text(), poiFont(), 0, &style.brush().color()); if (item->isValid() && !item->collides(textItems) + && !item->collides(labels) && !(exists && tileRect.contains(item->boundingRect())) && rectNearPolygon(poly.points, item->boundingRect())) { if (exists)