1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +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,11 +176,8 @@ 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;
}
w.setTimestamp(ts);
if (ts.isValid())
w.setTimestamp(ts);
}
if (list.size() > 7) {
qreal elevation = list.at(7).toDouble(&ok);