From 0f544f67042490e2a5448616601ed28322214c57 Mon Sep 17 00:00:00 2001 From: Paolo Angelelli Date: Fri, 15 Mar 2019 19:15:21 +0100 Subject: 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 --- src/plugins/geoservices/mapbox/qgeofiletilecachemapbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.1