call computeMetrics, not htmlSummary

This commit is contained in:
Sean Rhea
2009-12-10 11:08:51 -08:00
parent 5e4dc2ce57
commit 2f23582d08
2 changed files with 2 additions and 2 deletions

View File

@@ -636,7 +636,7 @@ void MainWindow::getBSFactors(float &timeBS, float &distanceBS)
) {
RideMetric *m;
item->htmlSummary(); // compute metrics
item->computeMetrics();
QString existing = progress->labelText();
existing.chop(progress->labelText().size() - endingOffset);

View File

@@ -122,7 +122,7 @@ int RideItem::numZones()
double RideItem::timeInZone(int zone)
{
htmlSummary();
computeMetrics();
if (!ride)
return 0.0;
assert(zone < numZones());