1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +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) { if (size < remaining) {
memcpy(buff, handle._data.constData() + handle._blockPos, size); memcpy(buff, handle._data.constData() + handle._blockPos, size);
handle._blockPos += size; handle._blockPos += size;
handle._pos++; handle._pos += size;
return true; return true;
} else { } else {
memcpy(buff, handle._data.constData() + handle._blockPos, memcpy(buff, handle._data.constData() + handle._blockPos,