1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 13:41:16 +01:00

Code cleanup

This commit is contained in:
Martin Tůma 2017-08-09 20:25:02 +02:00
parent b8a9a4481c
commit daa9d296bd
2 changed files with 2 additions and 2 deletions

View File

@ -621,7 +621,7 @@ void OfflineMap::drawImage(QPainter *painter, const QRectF &rect)
if (!_img || _img->isNull())
painter->fillRect(rect, Qt::white);
else {
QRect r(rect.topLeft().toPoint(), rect.size().toSize());
QRect r(rect.toRect());
painter->drawImage(rect.left(), rect.top(), *_img, r.left(), r.top(),
r.width(), r.height());
}

View File

@ -132,7 +132,7 @@ bool OZF::readTileTable()
quint16 x, y;
if (!_file.seek(_file.size() - 4))
if (!_file.seek(_file.size() - sizeof(offset)))
return false;
// table offset
if (!readValue(offset))