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:
parent
c4e0ff6435
commit
00a9adce1e
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user