1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00

A (hopefully) complete path shape parsing fix

fixes #430
This commit is contained in:
Martin Tůma 2022-04-19 22:17:19 +02:00
parent 1458d66798
commit c694c3e300

View File

@ -238,12 +238,12 @@ bool NETFile::readShape(const NODFile *nod, SubFile::Handle &nodHdl,
if (!stream.readNext(lonDelta, latDelta)) if (!stream.readNext(lonDelta, latDelta))
break; break;
if (!(lonDelta | latDelta) && !startWithStream)
break;
if (hasAdjustBit && !stream.read(1, adjustBit)) if (hasAdjustBit && !stream.read(1, adjustBit))
return false; return false;
if (!(lonDelta | latDelta) && !startWithStream && !hasAdjustBit)
break;
stepsCnt++; stepsCnt++;
if (useEosBit) { if (useEosBit) {