1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 11:45:53 +01:00

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.
This commit is contained in:
Martin Tůma 2023-01-19 10:04:03 +01:00
parent 3af98b6785
commit ee73908231

View File

@ -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);
}