1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-06-28 03:59:15 +02:00

Removed the extra padding breaking item location/ propper positioning

This commit is contained in:
2022-03-26 16:22:51 +01:00
parent 1385482689
commit 5d2f1205cc
3 changed files with 9 additions and 10 deletions

View File

@ -126,7 +126,7 @@ void RasterTile::processPointLabels(QList<TextItem*> &textItems)
TextPointItem *item = new TextPointItem(
ll2xy(point.coordinates).toPoint(), label, font, img, color,
hColor, 0, false);
hColor, 0);
if (item->isValid() && !item->collides(textItems))
textItems.append(item);
else
@ -181,7 +181,7 @@ void RasterTile::processAreaLabels(QList<TextItem*> &textItems)
? centroid(path.path) : ll2xy(path.labelPos);
TextPointItem *item = new TextPointItem(pos.toPoint(), label, font, img,
color, hColor, 0, false);
color, hColor, 0);
if (item->isValid() && _rect.contains(item->boundingRect().toRect())
&& !item->collides(textItems))
textItems.append(item);