mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue