1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-18 11:52:08 +01:00

Do not duplicate PYLONS points/areas

This commit is contained in:
Martin Tůma 2024-12-20 09:53:58 +01:00
parent f2ae75d7f5
commit a97dc3b6c2

View File

@ -173,7 +173,8 @@ static bool polygonCb(const MapData::Poly *polygon, void *context)
static bool polygonPointCb(const MapData::Poly *polygon, void *context) static bool polygonPointCb(const MapData::Poly *polygon, void *context)
{ {
QList<MapData::Point> *points = (QList<MapData::Point>*)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(), points->append(MapData::Point(polygon->type(), polygon->bounds().center(),
polygon->label(), polygon->param())); polygon->label(), polygon->param()));
return true; return true;