1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-18 19:52:09 +01:00

Improved OZF files handling.

This commit is contained in:
Martin Tůma 2017-04-17 19:34:44 +02:00
parent 47199348d8
commit 02bf85780a

View File

@ -332,7 +332,11 @@ bool OfflineMap::getImageInfo(const QString &path)
return false;
}
if (_imgPath.endsWith("ozf2")) {
if (_imgPath.endsWith("ozf3", Qt::CaseInsensitive)
|| _imgPath.endsWith("ozf4", Qt::CaseInsensitive)) {
qWarning("%s: %s: obfuscated image files are not supported",
qPrintable(_name), qPrintable(_imgPath));
} else if (_imgPath.endsWith("ozf2", Qt::CaseInsensitive)) {
_ozf.load(_imgPath);
_size = _ozf.size();
} else {