1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00

Do not outline soundings like in ENC maps

This commit is contained in:
Martin Tůma 2023-05-12 10:19:52 +02:00
parent bb22ad95b7
commit ddc7eb7149

View File

@ -446,12 +446,14 @@ void RasterTile::processPoints(QList<TextItem*> &textItems)
: font(style.textFontSize()); : font(style.textFontSize());
const QColor *color = style.textColor().isValid() const QColor *color = style.textColor().isValid()
? &style.textColor() : &textColor; ? &style.textColor() : &textColor;
const QColor *hcolor = Style::isDepthPoint(point.type)
? 0 : &haloColor;
if ((!label || !fnt) && !img) if ((!label || !fnt) && !img)
continue; continue;
TextPointItem *item = new TextPointItem(QPoint(point.coordinates.lon(), TextPointItem *item = new TextPointItem(QPoint(point.coordinates.lon(),
point.coordinates.lat()), label, fnt, img, color, &haloColor, 0, point.coordinates.lat()), label, fnt, img, color, hcolor, 0,
ICON_PADDING); ICON_PADDING);
if (item->isValid() && !item->collides(textItems)) if (item->isValid() && !item->collides(textItems))
textItems.append(item); textItems.append(item);