diff --git a/src/offlinemap.cpp b/src/offlinemap.cpp index a0d0e240..0f49a01f 100644 --- a/src/offlinemap.cpp +++ b/src/offlinemap.cpp @@ -621,9 +621,9 @@ void OfflineMap::drawImage(QPainter *painter, const QRectF &rect) if (!_img || _img->isNull()) painter->fillRect(rect, Qt::white); else { - QPoint p = rect.topLeft().toPoint(); - QImage crop = _img->copy(QRect(p, rect.size().toSize())); - painter->drawImage(rect.topLeft(), crop); + QRect r(rect.topLeft().toPoint(), rect.size().toSize()); + painter->drawImage(rect.left(), rect.top(), *_img, r.left(), r.top(), + r.width(), r.height()); } }