mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 03:35:53 +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:
parent
87c5a255c8
commit
531b37bc70
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user