mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
@@ -759,7 +759,7 @@ MetricOverviewItem::setDateRange(DateRange dr)
|
||||
RideMetric *m = const_cast<RideMetric*>(factory.rideMetric(symbol));
|
||||
if (std::isinf(v) || std::isnan(v)) v=0;
|
||||
if (m) {
|
||||
value = m->toString(false, v); // do not convert metric units as already done.
|
||||
value = m->toString(GlobalContext::context()->useMetricUnits, v);
|
||||
} else {
|
||||
value = Utils::removeDP(QString("%1").arg(v));
|
||||
if (value == "nan") value ="";
|
||||
|
||||
Reference in New Issue
Block a user