summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-10-09 14:24:15 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-10-20 16:58:19 (GMT)
commit0646a5e26e2137944a51632639588ccd0298eeb8 (patch)
tree4a137b71e1d77d2a556afcf4fc8cf14faf8ae542
parentcc707b9afaed81038b5c378a54cca5e6b3ee9771 (diff)
Fix refactoring issue introduced in 5c1022d
m_zoomlevel and tile.zoomLevel() are different (m_zoomlevel is the lower base zoom level and tile a higher level one). (cherry picked from commit eb44ff9711a38223ea70204c7289598b27e6e329)
-rw-r--r--tools/vectorosm-tilecreator/TileDirectory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vectorosm-tilecreator/TileDirectory.cpp b/tools/vectorosm-tilecreator/TileDirectory.cpp
index bd5e000..e844d7a 100644
--- a/tools/vectorosm-tilecreator/TileDirectory.cpp
+++ b/tools/vectorosm-tilecreator/TileDirectory.cpp
@@ -392,7 +392,7 @@ void TileDirectory::createTiles() const
bool TileDirectory::contains(const TileId &tile) const
{
GeoDataLatLonBox tileBoundary;
- m_tileProjection.geoCoordinates(m_zoomLevel, tile.x(), tile.y(), tileBoundary);
+ m_tileProjection.geoCoordinates(tile.zoomLevel(), tile.x(), tile.y(), tileBoundary);
double const west = tileBoundary.west();
double const east = tileBoundary.east();