summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-11-09 19:10:02 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-11-09 19:10:02 (GMT)
commit0c5a33442693a9fa2e175fc6e6502821da0ec6cb (patch)
tree2d2b91ce9daad83c357badc99575be464367b2aa
parent31cc33fad5313e64565623e417c869f91d855312 (diff)
Fix newly downloaded vector tiles being loaded and rendered twice. Doh.
With TileId instances as key for loaded and queued documents, their map theme id must match always.
-rw-r--r--src/lib/marble/VectorTileModel.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/marble/VectorTileModel.cpp b/src/lib/marble/VectorTileModel.cpp
index 6b1f552..ae1fac7 100644
--- a/src/lib/marble/VectorTileModel.cpp
+++ b/src/lib/marble/VectorTileModel.cpp
@@ -178,8 +178,9 @@ int VectorTileModel::cachedDocuments() const
return m_documents.size();
}
-void VectorTileModel::updateTile( const TileId &id, GeoDataDocument *document )
+void VectorTileModel::updateTile( const TileId &idWithMapThemeHash, GeoDataDocument *document )
{
+ TileId const id(0, idWithMapThemeHash.zoomLevel(), idWithMapThemeHash.x(), idWithMapThemeHash.y());
m_pendingDocuments.removeAll(id);
if (!document) {
return;