1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-31 09:05:14 +01:00

Fixed block read algorithm

This commit is contained in:
Martin Tůma 2021-02-03 22:49:06 +01:00
parent 731f2d7e6d
commit b9c1c6c6cf

View File

@ -123,7 +123,7 @@ bool SubFile::read(Handle &handle, quint8 *buff, quint32 size) const
if (size < remaining) {
memcpy(buff, handle._data.constData() + handle._blockPos, size);
handle._blockPos += size;
handle._pos++;
handle._pos += size;
return true;
} else {
memcpy(buff, handle._data.constData() + handle._blockPos,