mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
0afe07d021
commit
5fc31f6afc
1 changed files with 0 additions and 3 deletions
|
@ -247,9 +247,6 @@ void GlobeGPS::reload()
|
||||||
|
|
||||||
void GlobeGPS::centerOnDiveSite(uint32_t uuid)
|
void GlobeGPS::centerOnDiveSite(uint32_t uuid)
|
||||||
{
|
{
|
||||||
if (uuid == 0)
|
|
||||||
return;
|
|
||||||
|
|
||||||
struct dive_site *ds = get_dive_site_by_uuid(uuid);
|
struct dive_site *ds = get_dive_site_by_uuid(uuid);
|
||||||
|
|
||||||
if (!dive_site_has_gps_location(ds)) {
|
if (!dive_site_has_gps_location(ds)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue