summaryrefslogtreecommitdiffstats
path: root/qt-ui/globe.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-25 11:13:15 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-25 11:13:15 -0700
commit4409d61f7c4576497a60b7e50d0c81e2f20b826a (patch)
treeb001dc9c8aeb6c71e93674dd887807e64b75986b /qt-ui/globe.cpp
parent92ee374494b83c47115f6f479530e7e9678ad562 (diff)
downloadsubsurface-4409d61f7c4576497a60b7e50d0c81e2f20b826a.tar.gz
Set a pleasant zoom level to start out with
If the user very quickly switches between dives the zoom level sometimes gets reset to be much more "zoomed out" (basically if you change dives before Marble had time to zoom all the way in to the previous dive it will keep whatever was the last zoom level of the animation - I'd consider that a Marble bug). Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/globe.cpp')
-rw-r--r--qt-ui/globe.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp
index 014a84a09..fea564644 100644
--- a/qt-ui/globe.cpp
+++ b/qt-ui/globe.cpp
@@ -39,6 +39,8 @@ GlobeGPS::GlobeGPS(QWidget* parent) : MarbleWidget(parent), loadedDives(0)
setShowOverviewMap(false);
setShowScaleBar(true);
setShowCompass(false);
+ // set the zoom as seen from n kilometer above. 3km / 10,000ft seems pleasant
+ zoomView(zoomFromDistance(3));
}
void GlobeGPS::reload()
@@ -88,7 +90,6 @@ void GlobeGPS::centerOn(dive* dive)
prepareForGetDiveCoordinates(dive);
return;
}
-
centerOn(longitude,latitude, true);
}