mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-04-21 20:59:11 +02:00
Compare commits
No commits in common. "c97561add42f9452f015c1d479e9f80bdfaccd70" and "789606cf86918828e187349948dbbd42519e6178" have entirely different histories.
c97561add4
...
789606cf86
@ -272,7 +272,7 @@ bool OziMap::setTileInfo(const QStringList &tiles, const QString &path)
|
|||||||
for (int i = 0; i < tiles.size(); i++) {
|
for (int i = 0; i < tiles.size(); i++) {
|
||||||
const QString &tile = tiles.at(i);
|
const QString &tile = tiles.at(i);
|
||||||
|
|
||||||
if (tile.contains(rx)) {
|
if (tile.startsWith("set/") && tile.contains(rx)) {
|
||||||
_tile.path = QString(tile).replace(rx, "_%1_%2.");
|
_tile.path = QString(tile).replace(rx, "_%1_%2.");
|
||||||
|
|
||||||
if (_tar) {
|
if (_tar) {
|
||||||
@ -283,12 +283,14 @@ 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()) {
|
||||||
|
_errorString = QString("Error retrieving tile size: "
|
||||||
|
"%1: Invalid image").arg(QFileInfo(tile).fileName());
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
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