mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 19:55:53 +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())
|
if (!_img || _img->isNull())
|
||||||
painter->fillRect(rect, Qt::white);
|
painter->fillRect(rect, Qt::white);
|
||||||
else {
|
else {
|
||||||
QRect r(rect.topLeft().toPoint(), rect.size().toSize());
|
QRect r(rect.toRect());
|
||||||
painter->drawImage(rect.left(), rect.top(), *_img, r.left(), r.top(),
|
painter->drawImage(rect.left(), rect.top(), *_img, r.left(), r.top(),
|
||||||
r.width(), r.height());
|
r.width(), r.height());
|
||||||
}
|
}
|
||||||
|
@ -132,7 +132,7 @@ bool OZF::readTileTable()
|
|||||||
quint16 x, y;
|
quint16 x, y;
|
||||||
|
|
||||||
|
|
||||||
if (!_file.seek(_file.size() - 4))
|
if (!_file.seek(_file.size() - sizeof(offset)))
|
||||||
return false;
|
return false;
|
||||||
// table offset
|
// table offset
|
||||||
if (!readValue(offset))
|
if (!readValue(offset))
|
||||||
|
Loading…
Reference in New Issue
Block a user