From c694c3e30057cfef3738580e9244fbd85ad81ff4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Tue, 19 Apr 2022 22:17:19 +0200 Subject: [PATCH] A (hopefully) complete path shape parsing fix fixes #430 --- src/map/IMG/netfile.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/map/IMG/netfile.cpp b/src/map/IMG/netfile.cpp index 46072d7f..757e95a5 100644 --- a/src/map/IMG/netfile.cpp +++ b/src/map/IMG/netfile.cpp @@ -238,12 +238,12 @@ bool NETFile::readShape(const NODFile *nod, SubFile::Handle &nodHdl, if (!stream.readNext(lonDelta, latDelta)) break; - if (!(lonDelta | latDelta) && !startWithStream) - break; - if (hasAdjustBit && !stream.read(1, adjustBit)) return false; + if (!(lonDelta | latDelta) && !startWithStream && !hasAdjustBit) + break; + stepsCnt++; if (useEosBit) {