mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
parent
e63a2e1fde
commit
c5fef58b2e
@ -126,13 +126,11 @@ bool IGCParser::readBRecord(SegmentData &segment, const char *line,
|
|||||||
int len)
|
int len)
|
||||||
{
|
{
|
||||||
qreal lat, lon, ele;
|
qreal lat, lon, ele;
|
||||||
QTime time;
|
|
||||||
|
|
||||||
|
|
||||||
if (len < 35)
|
if (len < 35)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (!readTimestamp(line + 1, time)) {
|
if (!readTimestamp(line + 1, _time)) {
|
||||||
_errorString = "Invalid timestamp";
|
_errorString = "Invalid timestamp";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@ -151,11 +149,6 @@ bool IGCParser::readBRecord(SegmentData &segment, const char *line,
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (time < _time)
|
|
||||||
_date = _date.addDays(1);
|
|
||||||
_time = time;
|
|
||||||
|
|
||||||
Trackpoint t(Coordinates(lon, lat));
|
Trackpoint t(Coordinates(lon, lat));
|
||||||
t.setTimestamp(QDateTime(_date, _time, Qt::UTC));
|
t.setTimestamp(QDateTime(_date, _time, Qt::UTC));
|
||||||
t.setElevation(ele);
|
t.setElevation(ele);
|
||||||
|
Loading…
Reference in New Issue
Block a user