mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Cosmetics
This commit is contained in:
parent
bfe31023e0
commit
8a069f113e
@ -357,8 +357,8 @@ bool FITParser::parseData(CTX &ctx, const MessageDefinition *def)
|
|||||||
} else if (def->globalId == COURSE_POINT) {
|
} else if (def->globalId == COURSE_POINT) {
|
||||||
switch (field->id) {
|
switch (field->id) {
|
||||||
case 1:
|
case 1:
|
||||||
waypoint.setTimestamp(QDateTime::fromSecsSinceEpoch(val.toUInt()
|
waypoint.setTimestamp(QDateTime::fromSecsSinceEpoch(
|
||||||
+ 631065600, Qt::UTC));
|
val.toUInt() + 631065600, Qt::UTC));
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
waypoint.rcoordinates().setLat(
|
waypoint.rcoordinates().setLat(
|
||||||
@ -413,8 +413,8 @@ bool FITParser::parseData(CTX &ctx, const MessageDefinition *def)
|
|||||||
}
|
}
|
||||||
} else if (def->globalId == RECORD_MESSAGE) {
|
} else if (def->globalId == RECORD_MESSAGE) {
|
||||||
if (ctx.trackpoint.coordinates().isValid()) {
|
if (ctx.trackpoint.coordinates().isValid()) {
|
||||||
ctx.trackpoint.setTimestamp(QDateTime::fromSecsSinceEpoch(ctx.timestamp
|
ctx.trackpoint.setTimestamp(QDateTime::fromSecsSinceEpoch(
|
||||||
+ 631065600, Qt::UTC));
|
ctx.timestamp + 631065600, Qt::UTC));
|
||||||
ctx.trackpoint.setRatio(ctx.ratio);
|
ctx.trackpoint.setRatio(ctx.ratio);
|
||||||
ctx.segment.append(ctx.trackpoint);
|
ctx.segment.append(ctx.trackpoint);
|
||||||
ctx.trackpoint = Trackpoint();
|
ctx.trackpoint = Trackpoint();
|
||||||
|
Loading…
Reference in New Issue
Block a user