1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +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))
break;
if (!(lonDelta | latDelta) && !startWithStream)
break;
if (hasAdjustBit && !stream.read(1, adjustBit))
return false;
if (!(lonDelta | latDelta) && !startWithStream && !hasAdjustBit)
break;
stepsCnt++;
if (useEosBit) {