Hi there, This is patch for ticket #507. If the coordinates of a dive are not set then a full view of Earth is shown.
Happy coding, Claudiu
From 0e2c9c6bde44e8277d83637f1a03fbb86052ad2f Mon Sep 17 00:00:00 2001 From: Claudiu Olteanu <[email protected]> Date: Sun, 15 Mar 2015 15:42:05 +0200 Subject: [PATCH] Change the zoom level on globe if no coordinates are set As flo269 suggested in bug #507, a full view of Earth would be better when a dive has no coordinates. Reported-by: flo269 Signed-off-by: Claudiu Olteanu <[email protected]> --- qt-ui/globe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index 91bb4e8..ea0c0f2 100644 --- a/qt-ui/globe.cpp +++ b/qt-ui/globe.cpp @@ -294,7 +294,7 @@ void GlobeGPS::zoomOutForNoGPS() // we show a dive with GPS location we need to zoom in again if (fixZoomTimer->isActive()) fixZoomTimer->stop(); - setZoom(1200, Marble::Automatic); + setZoom(0, Marble::Automatic); if (!needResetZoom) { needResetZoom = true; currentZoomLevel = zoom(); -- 2.1.4
_______________________________________________ subsurface mailing list [email protected] http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface
