mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 13:41:16 +01:00
Code cleanup
This commit is contained in:
parent
b8a9a4481c
commit
daa9d296bd
@ -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());
|
||||
}
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user