mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Fixed coordinates conversion
This commit is contained in:
parent
9789982626
commit
82cf7b49ca
@ -176,12 +176,12 @@ bool FITParser::parseData(MessageDefinition *def, quint8 offset)
|
||||
case 0:
|
||||
if (val != 0x7fffffff)
|
||||
trackpoint.rcoordinates().setLat(
|
||||
(val / (double)0x7fffffff) * 180);
|
||||
((qint32)val / (double)0x7fffffff) * 180);
|
||||
break;
|
||||
case 1:
|
||||
if (val != 0x7fffffff)
|
||||
trackpoint.rcoordinates().setLon(
|
||||
(val / (double)0x7fffffff) * 180);
|
||||
((qint32)val / (double)0x7fffffff) * 180);
|
||||
break;
|
||||
case 2:
|
||||
if (val != 0xffff)
|
||||
|
Loading…
Reference in New Issue
Block a user