summaryrefslogtreecommitdiffstats
path: root/info.c
diff options
context:
space:
mode:
Diffstat (limited to 'info.c')
-rw-r--r--info.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/info.c b/info.c
index 15e15d6cd..d6e2182ce 100644
--- a/info.c
+++ b/info.c
@@ -642,8 +642,10 @@ void update_gps_entry(float lat, float lon)
{
char gps_text[45];
- print_gps_coordinates(gps_text, 45, lat, lon);
- gtk_entry_set_text(location_update.entry, gps_text);
+ if (location_update.entry) {
+ print_gps_coordinates(gps_text, 45, lat, lon);
+ gtk_entry_set_text(location_update.entry, gps_text);
+ }
}
#if HAVE_OSM_GPS_MAP
@@ -959,6 +961,7 @@ int edit_multi_dive_info(struct dive *single_dive)
update_dive(master);
}
gtk_widget_destroy(dialog);
+ location_update.entry = NULL;
return success;
}