From 179f2f14513b528fc9e88332a5c41afd08932dd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Sun, 3 Dec 2017 10:24:24 +0100 Subject: [PATCH] Removed obsolete code --- src/map/offlinemap.cpp | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/map/offlinemap.cpp b/src/map/offlinemap.cpp index 0491030b..905c826c 100644 --- a/src/map/offlinemap.cpp +++ b/src/map/offlinemap.cpp @@ -540,12 +540,6 @@ void OfflineMap::drawTiled(QPainter *painter, const QRectF &rect) int x = tl.x() + i * _tileSize.width(); int y = tl.y() + j * _tileSize.height(); - if (!QRectF(QPointF(x, y), _tileSize).intersects(bounds())) { - painter->fillRect(QRectF(QPoint(x, y), _tileSize), - _backgroundColor); - continue; - } - QString tileName(_tileName.arg(QString::number(x), QString::number(y))); QPixmap pixmap; @@ -584,12 +578,6 @@ void OfflineMap::drawOZF(QPainter *painter, const QRectF &rect) int x = tl.x() + i * _ozf.tileSize().width(); int y = tl.y() + j * _ozf.tileSize().height(); - if (!QRectF(QPointF(x, y), _ozf.tileSize()).intersects(bounds())) { - painter->fillRect(QRectF(QPoint(x, y), _ozf.tileSize()), - _backgroundColor); - continue; - } - QPixmap pixmap; QString key = _ozf.fileName() + "/" + QString::number(_zoom) + "_" + QString::number(x) + "_" + QString::number(y);