summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Nienhüser <nienhueser@kde.org>2016-10-09 15:52:56 (GMT)
committerDennis Nienhüser <nienhueser@kde.org>2016-10-20 17:01:02 (GMT)
commit6a78fc91e01c0ffc97496ecb6235024a7dbe849c (patch)
tree54e8d93849257e67ccd11db08abc2859daa1f070
parentfdac3b5b8c187601d9ff5ab64f50284592019cd8 (diff)
Avoid file/dir name clashes when using local files
(cherry picked from commit 19c19e2067bb60da07a5ed1af59269686bae846d)
-rw-r--r--tools/vectorosm-tilecreator/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vectorosm-tilecreator/main.cpp b/tools/vectorosm-tilecreator/main.cpp
index 7ae31a8..d542cbd 100644
--- a/tools/vectorosm-tilecreator/main.cpp
+++ b/tools/vectorosm-tilecreator/main.cpp
@@ -214,7 +214,7 @@ int main(int argc, char *argv[])
}
} else {
QString const region = QFileInfo(inputFileName).fileName();
- QString const regionDir = QString("%1/%2").arg(cacheDirectory).arg(region);
+ QString const regionDir = QString("%1/%2").arg(cacheDirectory).arg(QFileInfo(inputFileName).baseName());
TileDirectory mapTiles(TileDirectory::OpenStreetMap, regionDir, manager, extension, maxZoomLevel);
mapTiles.setInputFile(inputFileName);
mapTiles.createTiles();