summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/globe.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/globe.cpp')
-rw-r--r--desktop-widgets/globe.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop-widgets/globe.cpp b/desktop-widgets/globe.cpp
index ebe1fdb1c..2bab4e83f 100644
--- a/desktop-widgets/globe.cpp
+++ b/desktop-widgets/globe.cpp
@@ -267,7 +267,7 @@ void GlobeGPS::centerOnDiveSite(struct dive_site *ds)
// otherwise check to make sure we aren't still running an animation and then remember
// the current zoom level
if (currentZoomLevel == -1) {
- currentZoomLevel = zoomFromDistance(3.0);
+ currentZoomLevel = lrint(zoomFromDistance(3.0));
centerOn(longitude, latitude);
fixZoom(true);
return;