Permalink
Browse files

Fix off by one ride duration on import

  • Loading branch information...
liversedge committed Nov 13, 2017
1 parent fd2f54d commit 96f34aabb26567cb4dc7c3417a4bfffadb09c62d
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Gui/RideImportWizard.cpp
@@ -631,7 +631,7 @@ RideImportWizard::process()
// show duration by looking at last data point
if (!ride->dataPoints().isEmpty() && ride->dataPoints().last() != NULL) {
if (!secs) secs = ride->dataPoints().last()->secs;
if (!secs) secs = ride->dataPoints().last()->secs + ride->recIntSecs();
if (!km) km = ride->dataPoints().last()->km;
}

0 comments on commit 96f34aa

Please sign in to comment.