mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Fixed broken data size copy
This commit is contained in:
parent
35703e3363
commit
820e614921
@ -223,7 +223,7 @@ QPixmap OZF::tile(int zoom, int x, int y)
|
||||
quint32 bes = qToBigEndian(tileSize().width() * tileSize().height());
|
||||
QByteArray ba;
|
||||
ba.resize(sizeof(bes) + size);
|
||||
*(ba.data()) = bes;
|
||||
memcpy(ba.data(), &bes, sizeof(bes));
|
||||
|
||||
if (!read(ba.data() + sizeof(bes), size, 16))
|
||||
return QPixmap();
|
||||
|
Loading…
Reference in New Issue
Block a user