diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-26 20:23:33 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-26 20:23:33 -0700 |
commit | 5fc31f6afcc3d6875cd9f31b77080a20ebafa437 (patch) | |
tree | f49d568387fcc9b0dc865643f5c0182a3c1b7e6f | |
parent | 0afe07d021256de8a68df035496eb520dbc58d82 (diff) | |
download | subsurface-5fc31f6afcc3d6875cd9f31b77080a20ebafa437.tar.gz |
Globe: reset the view when called with no divesite
Returning here was simply wrong; we need to zoom out.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r-- | qt-ui/globe.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/qt-ui/globe.cpp b/qt-ui/globe.cpp index b070da424..9b50adccf 100644 --- a/qt-ui/globe.cpp +++ b/qt-ui/globe.cpp @@ -247,9 +247,6 @@ void GlobeGPS::reload() void GlobeGPS::centerOnDiveSite(uint32_t uuid) { - if (uuid == 0) - return; - struct dive_site *ds = get_dive_site_by_uuid(uuid); if (!dive_site_has_gps_location(ds)) { |