From ee7390823114979e94c75fe5ee5c2f3095728453 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Thu, 19 Jan 2023 10:04:03 +0100 Subject: [PATCH] Do not treat Ozimaps as directories Directory parsing was stopped at the level of the map which is not what we want - users would have to create separate directories for every Ozimap. --- src/map/ozimap.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/ozimap.cpp b/src/map/ozimap.cpp index efe399e3..ec7755bc 100644 --- a/src/map/ozimap.cpp +++ b/src/map/ozimap.cpp @@ -381,7 +381,7 @@ void OziMap::setDevicePixelRatio(qreal deviceRatio, qreal mapRatio) Map *OziMap::createTAR(const QString &path, const Projection &, bool *isDir) { if (isDir) - *isDir = true; + *isDir = false; return new OziMap(path, true); } @@ -389,7 +389,7 @@ Map *OziMap::createTAR(const QString &path, const Projection &, bool *isDir) Map *OziMap::createMAP(const QString &path, const Projection &, bool *isDir) { if (isDir) - *isDir = true; + *isDir = false; return new OziMap(path, false); }