mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix small error in DataFilter metrics(Symbol,...)
The 2nd parameter of RideItem::getForSymbol is a boolean for metric/imperial, passing c selects imperial units when metrics(Symbol,...) is used in LTMPlot.
This commit is contained in:
@@ -2874,8 +2874,7 @@ Result Leaf::eval(DataFilterRuntime *df, Leaf *leaf, float x, long it, RideItem
|
||||
|
||||
double value=0;
|
||||
if(wantdate) value= QDate(1900,01,01).daysTo(ride->dateTime.date());
|
||||
else value = ride->getForSymbol(df->lookupMap.value(symbol,""), c);
|
||||
|
||||
else value = ride->getForSymbol(df->lookupMap.value(symbol,""));
|
||||
returning.number += value;
|
||||
returning.vector.append(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user