Fix GPS coordinates rounding.
Better round the coordinates. Signed-off-by: Sergey Starosek <sergey.starosek@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
fe66fe5ff6
commit
dbb84188c2
@ -110,8 +110,8 @@ void GlobeGPS::changeDiveGeoPosition(qreal lon, qreal lat, GeoDataCoordinates::U
|
||||
return;
|
||||
}
|
||||
|
||||
editingDiveCoords->latitude.udeg = lat * 1000000.0;
|
||||
editingDiveCoords->longitude.udeg = lon * 1000000.0;
|
||||
editingDiveCoords->latitude.udeg = lrint(lat * 1000000.0);
|
||||
editingDiveCoords->longitude.udeg = lrint(lon * 1000000.0);
|
||||
centerOn(lon, lat, true);
|
||||
reload();
|
||||
editingDiveCoords = 0;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user