1
0
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:
Martin Tůma 2019-09-18 09:11:46 +02:00
parent cdb641b204
commit 0a75298b2b
2 changed files with 1 additions and 2 deletions

View File

@ -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;

View File

@ -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;
} }