summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-11-09 18:30:26 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-11-09 18:30:42 (GMT)
commit31cc33fad5313e64565623e417c869f91d855312 (patch)
tree29a2753be45b752bb50e731c52e4f04226d36193
parent0d3aedbb8a37a40d64ec158823604bbd0e0ace36 (diff)
Initial zoom level needs no cache clear
-rw-r--r--src/lib/marble/VectorTileModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/marble/VectorTileModel.cpp b/src/lib/marble/VectorTileModel.cpp
index 5ef5d98..6b1f552 100644
--- a/src/lib/marble/VectorTileModel.cpp
+++ b/src/lib/marble/VectorTileModel.cpp
@@ -111,8 +111,8 @@ void VectorTileModel::setViewport( const GeoDataLatLonBox &latLonBox, int radius
// if zoom level has changed, empty vectortile cache
if ( tileZoomLevel != m_tileLoadLevel ) {
+ m_deleteDocumentsLater = m_tileLoadLevel >= 0;
m_tileLoadLevel = tileZoomLevel;
- m_deleteDocumentsLater = true;
}
/** LOGIC FOR DOWNLOADING ALL THE TILES THAT ARE INSIDE THE SCREEN AT THE CURRENT ZOOM LEVEL **/