mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Made the variable record info parsing universal
This commit is contained in:
parent
cdb641b204
commit
0a75298b2b
@ -268,7 +268,7 @@ bool RGNFile::extPolyObjects(const RectC &rect, Handle &hdl,
|
|||||||
br = br.united(c);
|
br = br.united(c);
|
||||||
poly.points.append(QPointF(c.lon(), c.lat()));
|
poly.points.append(QPointF(c.lon(), c.lat()));
|
||||||
|
|
||||||
BitStream bs(*this, hdl, len);
|
BitStream bs(*this, hdl, len - 1);
|
||||||
int lonSign, latSign;
|
int lonSign, latSign;
|
||||||
if (!bs.sign(lonSign) || !bs.sign(latSign))
|
if (!bs.sign(lonSign) || !bs.sign(latSign))
|
||||||
return false;
|
return false;
|
||||||
|
@ -94,7 +94,6 @@ bool SubFile::readVUInt32(Handle &hdl, quint32 &val) const
|
|||||||
val |= (((quint32)b) << (i * 8)) >> (8 - shift);
|
val |= (((quint32)b) << (i * 8)) >> (8 - shift);
|
||||||
|
|
||||||
}
|
}
|
||||||
val--;
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user