CP Plot Tests honor sport settings

In Activities view we filter bests (and now tests) to match the
selected activity sport.
This commit is contained in:
Ale Martinez
2018-12-04 15:49:47 -03:00
parent a64c6f06d6
commit 7073fb0d09

View File

@@ -1076,7 +1076,8 @@ CPPlot::plotTests(RideItem *rideitem)
foreach(RideItem *r, context->athlete->rideCache->rides()) {
// does it match ?
if (spec.pass(r)) rides << r;
if ((r->isSwim == isSwim) && (r->isRun == isRun) && spec.pass(r))
rides << r;
}
foreach (RideItem *item, rides) {