1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-23 19:25:54 +01:00

Always draw the light icon of lights, not only when class data is present

Some charts have the lights info in the lcl data section that we do not
parse.
This commit is contained in:
Martin Tůma 2024-09-17 21:25:17 +02:00
parent 87c5a255c8
commit 531b37bc70
2 changed files with 1 additions and 3 deletions

View File

@ -429,7 +429,7 @@ void RasterTile::processPoints(QList<MapData::Point> &points,
color, hcolor, 0, ICON_PADDING);
if (item->isValid() && !item->collides(textItems)) {
textItems.append(item);
if (point.flags & MapData::Point::Light)
if (Style::isLight(point.type) || point.flags & MapData::Point::Light)
textItems.append(new TextPointItem(pos + style->lightOffset(),
0, 0, style->light(), 0, 0, 0, 0));
} else

View File

@ -184,8 +184,6 @@ bool RGNFile::readClassFields(Handle &hdl, SegmentType segmentType,
readObstructionInfo(hdl, flags, rs, point);
if (point && Style::isBuoy(point->type))
readBuoyInfo(hdl, flags, point);
if (point && Style::isLight(point->type))
point->flags |= MapData::Point::Light;
return seek(hdl, off + rs);
}