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;}