diff --git a/src/map/IMG/rgnfile.cpp b/src/map/IMG/rgnfile.cpp index 812074f9..a2b6cef1 100644 --- a/src/map/IMG/rgnfile.cpp +++ b/src/map/IMG/rgnfile.cpp @@ -268,7 +268,7 @@ bool RGNFile::extPolyObjects(const RectC &rect, Handle &hdl, br = br.united(c); poly.points.append(QPointF(c.lon(), c.lat())); - BitStream bs(*this, hdl, len); + BitStream bs(*this, hdl, len - 1); int lonSign, latSign; if (!bs.sign(lonSign) || !bs.sign(latSign)) return false; diff --git a/src/map/IMG/subfile.cpp b/src/map/IMG/subfile.cpp index f6e9ae42..8b590b48 100644 --- a/src/map/IMG/subfile.cpp +++ b/src/map/IMG/subfile.cpp @@ -94,7 +94,6 @@ bool SubFile::readVUInt32(Handle &hdl, quint32 &val) const val |= (((quint32)b) << (i * 8)) >> (8 - shift); } - val--; return true; }