1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Fixed coordinates conversion

This commit is contained in:
Martin Tůma 2016-11-01 00:14:44 +01:00
parent 9789982626
commit 82cf7b49ca

View File

@ -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)