diff options
Diffstat (limited to 'core/gpslocation.cpp')
-rw-r--r-- | core/gpslocation.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/gpslocation.cpp b/core/gpslocation.cpp index 974b9636b..c12d0a1d1 100644 --- a/core/gpslocation.cpp +++ b/core/gpslocation.cpp @@ -225,14 +225,14 @@ static void copy_gps_location(struct gpsTracker &gps, struct dive *d) #define SET_LOCATION(_dive, _gpsfix, _mark) \ { \ copy_gps_location(_gpsfix, _dive); \ - changed = true; \ + changed++; \ last = _mark; \ } -bool GpsLocation::applyLocations() +int GpsLocation::applyLocations() { int i; - bool changed = false; + int changed = 0; int last = 0; int cnt = m_trackers.count(); if (cnt == 0) @@ -317,7 +317,7 @@ bool GpsLocation::applyLocations() } } - if (changed) + if (changed > 0) mark_divelist_changed(true); return changed; } |