From 0a75298b2b6093e87107d5388c14c8312b37663c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 18 Sep 2019 09:11:46 +0200 Subject: [PATCH] Made the variable record info parsing universal --- src/map/IMG/rgnfile.cpp | 2 +- src/map/IMG/subfile.cpp | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) 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; }