diff options
author | Paolo Angelelli <paolo.angelelli@qt.io> | 2019-03-15 19:15:21 +0100 |
---|---|---|
committer | Paolo Angelelli <paolo.angelelli@qt.io> | 2019-03-18 13:07:51 +0000 |
commit | 0f544f67042490e2a5448616601ed28322214c57 (patch) | |
tree | 41b413ea23bf07301327706368337ddd0eb2cd1d | |
parent | fcd0c7e36dd4f5f7ae14f6c21c7e252729b55f8f (diff) | |
download | qtlocation-0f544f67042490e2a5448616601ed28322214c57.tar.gz |
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>
-rw-r--r-- | src/plugins/geoservices/mapbox/qgeofiletilecachemapbox.cpp | 2 |
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(); |