diff options
-rw-r--r-- | subsurface-core/gpslocation.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/subsurface-core/gpslocation.cpp b/subsurface-core/gpslocation.cpp index 412bf95ad..06af74c0c 100644 --- a/subsurface-core/gpslocation.cpp +++ b/subsurface-core/gpslocation.cpp @@ -67,7 +67,7 @@ void GpsLocation::newPosition(QGeoPositionInfo pos) // if we have no record stored or if at least the configured minimum // time has passed or we moved at least the configured minimum distance if (!nr || - pos.timestamp().toTime_t() > lastTime + prefs.time_threshold || + (time_t)pos.timestamp().toTime_t() > lastTime + prefs.time_threshold || lastCoord.distanceTo(pos.coordinate()) > prefs.distance_threshold) { geoSettings->setValue("count", nr + 1); geoSettings->setValue(QString("gpsFix%1_time").arg(nr), pos.timestamp().toTime_t()); |