mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-18 19:52:09 +01:00
Fixed broken subdivs parsing
This commit is contained in:
parent
7c838331c2
commit
78703f3651
@ -235,6 +235,9 @@ bool TREFile::load(int idx)
|
||||
totalSubdivs += _levels.at(i).subdivs;
|
||||
quint32 extendedSubdivs = _extended.size / _extended.itemSize;
|
||||
quint32 diff = totalSubdivs - extendedSubdivs + 1;
|
||||
if (skip < diff)
|
||||
return true;
|
||||
|
||||
if (!seek(hdl, _extended.offset + (skip - diff) * _extended.itemSize))
|
||||
goto error;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user