From a97dc3b6c28c64ff1ac3e5e8ab81a069585fa74e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Fri, 20 Dec 2024 09:53:58 +0100 Subject: [PATCH] Do not duplicate PYLONS points/areas --- src/map/ENC/mapdata.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/map/ENC/mapdata.cpp b/src/map/ENC/mapdata.cpp index d5c391a5..40f66e10 100644 --- a/src/map/ENC/mapdata.cpp +++ b/src/map/ENC/mapdata.cpp @@ -173,7 +173,8 @@ static bool polygonCb(const MapData::Poly *polygon, void *context) static bool polygonPointCb(const MapData::Poly *polygon, void *context) { QList *points = (QList*)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;