1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Also ignore invalid dates in waypoint lines

This commit is contained in:
Martin Tůma 2022-01-04 09:37:26 +01:00
parent c4e0ff6435
commit 00a9adce1e

View File

@ -176,10 +176,7 @@ bool TwoNavParser::parse(QFile *file, QList<TrackData> &tracks,
if (list.size() > 6) {
QDateTime ts(timestamp(list.at(5), list.at(6)));
if (!ts.isValid()) {
_errorString = "Invalid date/time";
return false;
}
if (ts.isValid())
w.setTimestamp(ts);
}
if (list.size() > 7) {