Skip to content

Commit

Permalink
Do not duplicate BUISGL areas with points
Browse files Browse the repository at this point in the history
  • Loading branch information
tumic0 committed Dec 19, 2024
1 parent 816681f commit f2ae75d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/map/ENC/mapdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ static bool polygonCb(const MapData::Poly *polygon, void *context)
static bool polygonPointCb(const MapData::Poly *polygon, void *context)
{
QList<MapData::Point> *points = (QList<MapData::Point>*)context;
points->append(MapData::Point(polygon->type(), polygon->bounds().center(),
polygon->label(), polygon->param()));
if (!(polygon->type()>>16 == BUISGL && polygon->label().isEmpty()))
points->append(MapData::Point(polygon->type(), polygon->bounds().center(),
polygon->label(), polygon->param()));
return true;
}

Expand Down

0 comments on commit f2ae75d

Please sign in to comment.