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:
Ale Martinez
2020-04-06 21:54:31 -03:00
parent 42fa49c50f
commit feacfefbf4

View File

@@ -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);
}