From f2ae75d7f5e4e1bfc759663b5b26c3100b65febc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 19 Dec 2024 15:01:45 +0100 Subject: [PATCH] Do not duplicate BUISGL areas with points --- src/map/ENC/mapdata.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/map/ENC/mapdata.cpp b/src/map/ENC/mapdata.cpp index b7d5efcb..d5c391a5 100644 --- a/src/map/ENC/mapdata.cpp +++ b/src/map/ENC/mapdata.cpp @@ -173,8 +173,9 @@ static bool polygonCb(const MapData::Poly *polygon, void *context) static bool polygonPointCb(const MapData::Poly *polygon, void *context) { QList *points = (QList*)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; }