From dcedfe1e9f613c97f4d0f71454e182e3333795e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Wed, 9 Aug 2017 20:29:49 +0200 Subject: [PATCH] Wrong parameters usage fix --- src/offlinemap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/offlinemap.cpp b/src/offlinemap.cpp index d940045d..e26cb23e 100644 --- a/src/offlinemap.cpp +++ b/src/offlinemap.cpp @@ -622,7 +622,7 @@ void OfflineMap::drawImage(QPainter *painter, const QRectF &rect) painter->fillRect(rect, Qt::white); else { QRect r(rect.toRect()); - painter->drawImage(rect.left(), rect.top(), *_img, r.left(), r.top(), + painter->drawImage(r.left(), r.top(), *_img, r.left(), r.top(), r.width(), r.height()); } }