mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-27 21:24:47 +01:00
Code cleanup
This commit is contained in:
parent
36220dbc9c
commit
d4cceb0859
@ -312,14 +312,13 @@ Label LBLFile::label(Handle &hdl, quint32 offset, bool poi, bool capitalize,
|
|||||||
if (!(_poiSize >= (offset << _poiMultiplier)
|
if (!(_poiSize >= (offset << _poiMultiplier)
|
||||||
&& seek(hdl, _poiOffset + (offset << _poiMultiplier))
|
&& seek(hdl, _poiOffset + (offset << _poiMultiplier))
|
||||||
&& readUInt24(hdl, poiOffset) && (poiOffset & 0x3FFFFF)))
|
&& readUInt24(hdl, poiOffset) && (poiOffset & 0x3FFFFF)))
|
||||||
return QString();
|
return Label();
|
||||||
labelOffset = _offset + ((poiOffset & 0x3FFFFF) << _multiplier);
|
labelOffset = _offset + ((poiOffset & 0x3FFFFF) << _multiplier);
|
||||||
} else
|
} else
|
||||||
labelOffset = _offset + (offset << _multiplier);
|
labelOffset = _offset + (offset << _multiplier);
|
||||||
|
|
||||||
if (labelOffset > _offset + _size)
|
if (labelOffset > _offset + _size)
|
||||||
return QString();
|
return Label();
|
||||||
|
|
||||||
if (!seek(hdl, labelOffset))
|
if (!seek(hdl, labelOffset))
|
||||||
return Label();
|
return Label();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user