From 2234245e81987db5e78fedf6d2feca1d38331464 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 3 Apr 2022 21:20:21 +0200 Subject: [PATCH] Extend obstruction info --- src/map/IMG/rgnfile.cpp | 2 +- src/map/IMG/style.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map/IMG/rgnfile.cpp b/src/map/IMG/rgnfile.cpp index ffd48692..99d080e7 100644 --- a/src/map/IMG/rgnfile.cpp +++ b/src/map/IMG/rgnfile.cpp @@ -112,7 +112,7 @@ bool RGNFile::readClassFields(Handle &hdl, SegmentType segmentType, point->label = QString::number(d2m(depth, units)); } - if (point && Style::isIsolatedDangerPoint(point->type) && rs) { + if (point && Style::isObstructionPoint(point->type) && rs) { quint32 val, rb = rs; quint32 units = (flags >> 3) & 3; diff --git a/src/map/IMG/style.h b/src/map/IMG/style.h index fb78144f..3cda12e3 100644 --- a/src/map/IMG/style.h +++ b/src/map/IMG/style.h @@ -121,8 +121,8 @@ public: {return (type == 0x10613);} static bool isDepthPoint(quint32 type) {return (type == 0x10301);} - static bool isIsolatedDangerPoint(quint32 type) - {return (type == 0x10400);} + static bool isObstructionPoint(quint32 type) + {return (type >= 0x10400 && type <= 0x10401);} static bool isMarinePoint(quint32 type) {return type >= 0x10100 && type < 0x10a00;}