summaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'qt-ui/globe.cpp')
-rw-r--r--qt-ui/globe.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index 5f99eaf3d..0bd8f3d83 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -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;