1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Also accept broken ITN files generated by GPSBabel

This commit is contained in:
Martin Tůma 2021-05-14 22:56:38 +02:00
parent f3c0ed3f7f
commit 0f48e7c137

View File

@ -21,7 +21,7 @@ bool ITNParser::parse(QFile *file, QList<TrackData> &tracks,
ba = file->readLine();
QList<QByteArray> fields(ba.split('|'));
if (fields.size() != 5) {
if (fields.size() < 4) {
_errorString = "File format error";
return false;
}