Skip to content

Commit

Permalink
Do not duplicate PYLONS points/areas
Browse files Browse the repository at this point in the history
  • Loading branch information
tumic0 committed Dec 20, 2024
1 parent f2ae75d commit a97dc3b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/map/ENC/mapdata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ 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;
if (!(polygon->type()>>16 == BUISGL && polygon->label().isEmpty()))
if (!((polygon->type()>>16 == BUISGL && polygon->label().isEmpty())
|| polygon->type()>>16 == PYLONS))
points->append(MapData::Point(polygon->type(), polygon->bounds().center(),
polygon->label(), polygon->param()));
return true;
Expand Down

0 comments on commit a97dc3b

Please sign in to comment.