mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-06-01 07:43: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
|
||||
size = m + 1;
|
||||
|
||||
if (i == 2 && point) {
|
||||
if (!readLclNavaid(hdl, size, point))
|
||||
return false;
|
||||
} else if (i == 3 && point) {
|
||||
if (!readLclImg(hdl, size, point))
|
||||
return false;
|
||||
} else {
|
||||
if (!seek(hdl, pos(hdl) + size))
|
||||
return false;
|
||||
}
|
||||
quint32 off = pos(hdl);
|
||||
|
||||
if (i == 2 && point)
|
||||
readLclNavaid(hdl, size, point);
|
||||
else if (i == 3 && point)
|
||||
readLclImg(hdl, size, point);
|
||||
|
||||
if (!seek(hdl, off + size))
|
||||
return false;
|
||||
}
|
||||
bitfield >>= 1;
|
||||
j++;
|
||||
|
Loading…
x
Reference in New Issue
Block a user