summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaolo Angelelli <paolo.angelelli@qt.io>2019-03-15 19:15:21 +0100
committerPaolo Angelelli <paolo.angelelli@qt.io>2019-03-20 12:29:38 +0000
commitbdea5c63a0be0802bcb49b2fd30bac233a8ee50f (patch)
treeb3d3410ad6a0bf8e9ab70fe58aacd8ed84fcbb4d /src
parentd9e907e647723eb0165380cd7b95b288289983e7 (diff)
Fix incorrect indexing of Mapbox tiles in the cache
A missing '.' was causing to index the wrong tile specs for all map types. [ChangeLog] Fixed incorrect indexing of Mapbox tiles in the cache. Change-Id: Ic22dd60f4a608b31d071520bae750efddb48d59a Fixes: QTBUG-70438 Reviewed-by: Andy Shaw <andy.shaw@qt.io> (cherry picked from commit 0f544f67042490e2a5448616601ed28322214c57) Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/geoservices/mapbox/qgeofiletilecachemapbox.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/geoservices/mapbox/qgeofiletilecachemapbox.cpp b/src/plugins/geoservices/mapbox/qgeofiletilecachemapbox.cpp
index 2792ee78..3be66c72 100644
--- a/src/plugins/geoservices/mapbox/qgeofiletilecachemapbox.cpp
+++ b/src/plugins/geoservices/mapbox/qgeofiletilecachemapbox.cpp
@@ -90,7 +90,7 @@ QGeoTileSpec QGeoFileTileCacheMapbox::filenameToTileSpec(const QString &filename
if (parts.length() != 3) // 3 because the map name has always a dot in it.
return QGeoTileSpec();
- QString name = parts.at(0) + parts.at(1);
+ QString name = parts.at(0) + QChar('.') + parts.at(1);
QStringList fields = name.split('-');
int length = fields.length();