Distance 2 decimal places

Aligning to recent patch to increase decimal
places when selecting an interval, this now
sets the decimal places to 2 for distance when
displaying the metric (e.g. summary, interval
summary)
This commit is contained in:
Mark Liversedge
2011-08-27 18:20:39 +01:00
parent e1ee78ac7c
commit c39efb2a59

View File

@@ -125,7 +125,7 @@ class TotalDistance : public RideMetric {
setType(RideMetric::Total);
setMetricUnits(tr("km"));
setImperialUnits(tr("miles"));
setPrecision(1);
setPrecision(2);
setConversion(MILES_PER_KM);
}
void compute(const RideFile *ride, const Zones *, int,