mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-18 19:52:09 +01:00
parent
38d6f52965
commit
f3c0ed3f7f
@ -240,8 +240,11 @@ bool IGCParser::parse(QFile *file, QList<TrackData> &tracks,
|
|||||||
}
|
}
|
||||||
} else if (line[0] == 'B') {
|
} else if (line[0] == 'B') {
|
||||||
if (ctx.date.isNull()) {
|
if (ctx.date.isNull()) {
|
||||||
_errorString = "Missing date header";
|
/* The date H header is mandatory, but XCSOAR generates
|
||||||
return false;
|
files without it, so add a dummy date in such case */
|
||||||
|
qWarning("%s: Missing date header",
|
||||||
|
qPrintable(file->fileName()));
|
||||||
|
ctx.date = QDate(1970, 1, 1);
|
||||||
}
|
}
|
||||||
if (!track) {
|
if (!track) {
|
||||||
tracks.append(TrackData());
|
tracks.append(TrackData());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user