1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-28 01:14:24 +02:00

Switched to XML defined online map sources

This commit is contained in:
2018-01-28 22:56:08 +01:00
parent 8a7edcfd8d
commit aa07b20aa4
15 changed files with 323 additions and 113 deletions

View File

@ -127,7 +127,7 @@ int MapFile::parse(QIODevice &device, QList<CalibrationPoint> &points,
ln++;
}
return 0;
return (ln == 1) ? 1 : 0;
}
bool MapFile::parseMapFile(QIODevice &device, QList<CalibrationPoint> &points,
@ -136,13 +136,13 @@ bool MapFile::parseMapFile(QIODevice &device, QList<CalibrationPoint> &points,
int el;
if (!device.open(QIODevice::ReadOnly)) {
_errorString = QString("Error opening map file: %1")
_errorString = QString("Error opening file: %1")
.arg(device.errorString());
return false;
}
if ((el = parse(device, points, projection, setup, datum))) {
_errorString = QString("Map file parse error on line %1").arg(el);
_errorString = QString("Parse error on line %1").arg(el);
return false;
}