1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +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) { if (list.size() > 6) {
QDateTime ts(timestamp(list.at(5), list.at(6))); QDateTime ts(timestamp(list.at(5), list.at(6)));
if (!ts.isValid()) { if (ts.isValid())
_errorString = "Invalid date/time"; w.setTimestamp(ts);
return false;
}
w.setTimestamp(ts);
} }
if (list.size() > 7) { if (list.size() > 7) {
qreal elevation = list.at(7).toDouble(&ok); qreal elevation = list.at(7).toDouble(&ok);