mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-02 16:23:03 +02:00
Use the same error-tolerant approach for lcl data like we use for class data
This commit is contained in:
parent
b3bb97f4cf
commit
6b3c6a7738
@ -605,16 +605,15 @@ bool RGNFile::readLclFields(Handle &hdl, const quint32 flags[3],
|
|||||||
} else
|
} else
|
||||||
size = m + 1;
|
size = m + 1;
|
||||||
|
|
||||||
if (i == 2 && point) {
|
quint32 off = pos(hdl);
|
||||||
if (!readLclNavaid(hdl, size, point))
|
|
||||||
return false;
|
if (i == 2 && point)
|
||||||
} else if (i == 3 && point) {
|
readLclNavaid(hdl, size, point);
|
||||||
if (!readLclImg(hdl, size, point))
|
else if (i == 3 && point)
|
||||||
return false;
|
readLclImg(hdl, size, point);
|
||||||
} else {
|
|
||||||
if (!seek(hdl, pos(hdl) + size))
|
if (!seek(hdl, off + size))
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
bitfield >>= 1;
|
bitfield >>= 1;
|
||||||
j++;
|
j++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user