Skip to content

Commit

Permalink
Merge pull request #1335 from amtriathlon/master
Browse files Browse the repository at this point in the history
Fixed distance from LapsEditor in Manual Workouts with imperial units
  • Loading branch information
liversedge committed Mar 16, 2015
2 parents 511eb77 + 7c3219a commit 485004f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ManualRideDialog.cpp
Expand Up @@ -582,6 +582,6 @@ ManualRideDialog::lapsClicked()
if (lapsEditor && lapsEditor->exec() && lapsEditor->dataPoints().count() > 0) {
// update duration and distance
duration->setTime(QTime(0, 0, 0).addSecs(lapsEditor->dataPoints().count()));
distance->setValue(lapsEditor->dataPoints()[lapsEditor->dataPoints().count()-1]->km);
distance->setValue(lapsEditor->dataPoints()[lapsEditor->dataPoints().count()-1]->km / (context->athlete->useMetricUnits ? 1.0 : KM_PER_MILE));
}
}

0 comments on commit 485004f

Please sign in to comment.