1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-31 09:05:14 +01:00

Code cleanup

This commit is contained in:
Martin Tůma 2024-01-01 10:58:23 +01:00
parent d994fae4ce
commit c97561add4

View File

@ -283,13 +283,12 @@ bool OziMap::setTileInfo(const QStringList &tiles, const QString &path)
_tile.path = path + "/" + _tile.path;
_tile.size = QImageReader(path + "/" + tile).size();
}
if (!_tile.size.isValid()) {
qWarning("%s: error reading tile image", qPrintable(tile));
continue;
}
_map.path = QString();
return true;
if (_tile.size.isValid()) {
_map.path = QString();
return true;
} else
qWarning("%s: error reading tile image", qPrintable(tile));
}
}