mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-07 12:05:14 +01:00
Code cleanup
This commit is contained in:
parent
d994fae4ce
commit
c97561add4
@ -283,13 +283,12 @@ bool OziMap::setTileInfo(const QStringList &tiles, const QString &path)
|
|||||||
_tile.path = path + "/" + _tile.path;
|
_tile.path = path + "/" + _tile.path;
|
||||||
_tile.size = QImageReader(path + "/" + tile).size();
|
_tile.size = QImageReader(path + "/" + tile).size();
|
||||||
}
|
}
|
||||||
if (!_tile.size.isValid()) {
|
|
||||||
qWarning("%s: error reading tile image", qPrintable(tile));
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if (_tile.size.isValid()) {
|
||||||
_map.path = QString();
|
_map.path = QString();
|
||||||
return true;
|
return true;
|
||||||
|
} else
|
||||||
|
qWarning("%s: error reading tile image", qPrintable(tile));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user