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:
parent
79edd6e09d
commit
8507fe3b52
@ -271,6 +271,7 @@ void RasterTile::processPolygons(QList<TextItem*> &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)
|
||||
|
Loading…
Reference in New Issue
Block a user