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

Reintroduce the IMG icon padding

(but this time properly)
This commit is contained in:
2022-03-26 17:20:16 +01:00
parent a6390bf8a5
commit b2bcea5e78
3 changed files with 11 additions and 8 deletions

View File

@ -11,6 +11,8 @@
using namespace IMG;
#define ICON_PADDING 2
#define AREA(rect) \
(rect.size().width() * rect.size().height())
@ -450,7 +452,8 @@ void RasterTile::processPoints(QList<TextItem*> &textItems)
continue;
TextPointItem *item = new TextPointItem(QPoint(point.coordinates.lon(),
point.coordinates.lat()), label, fnt, img, color, &haloColor);
point.coordinates.lat()), label, fnt, img, color, &haloColor, 0,
ICON_PADDING);
if (item->isValid() && !item->collides(textItems))
textItems.append(item);
else