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

Added proper OZF files detection

This commit is contained in:
Martin Tůma 2017-04-23 12:49:40 +02:00
parent eace308774
commit 68a72c5809

View File

@ -347,11 +347,12 @@ bool OfflineMap::getImageInfo(const QString &path)
return false;
}
if (_imgPath.endsWith("ozf3") || _imgPath.endsWith("ozf4")) {
QString suffix = ii.suffix().toLower();
if (suffix == "ozf3" || suffix == "ozf4") {
_errorString = QString("%1: Obfuscated image files not supported")
.arg(QFileInfo(_imgPath).fileName());
return false;
} else if (_imgPath.endsWith("ozf2")) {
} else if (suffix == "ozf2") {
_ozf.load(_imgPath);
_size = _ozf.size();
} else {