summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/gpslocation.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/gpslocation.cpp b/core/gpslocation.cpp
index c12d0a1d1..257764a05 100644
--- a/core/gpslocation.cpp
+++ b/core/gpslocation.cpp
@@ -225,6 +225,7 @@ static void copy_gps_location(struct gpsTracker &gps, struct dive *d)
#define SET_LOCATION(_dive, _gpsfix, _mark) \
{ \
copy_gps_location(_gpsfix, _dive); \
+ invalidate_dive_cache(_dive); \
changed++; \
last = _mark; \
}