1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Added missing collision detection

This commit is contained in:
Martin Tůma 2020-10-22 01:16:23 +02:00
parent 79edd6e09d
commit 8507fe3b52

View File

@ -271,6 +271,7 @@ void RasterTile::processPolygons(QList<TextItem*> &textItems)
centroid(poly.points).toPoint(), &poly.label.text(), centroid(poly.points).toPoint(), &poly.label.text(),
poiFont(), 0, &style.brush().color()); poiFont(), 0, &style.brush().color());
if (item->isValid() && !item->collides(textItems) if (item->isValid() && !item->collides(textItems)
&& !item->collides(labels)
&& !(exists && tileRect.contains(item->boundingRect())) && !(exists && tileRect.contains(item->boundingRect()))
&& rectNearPolygon(poly.points, item->boundingRect())) { && rectNearPolygon(poly.points, item->boundingRect())) {
if (exists) if (exists)