mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Use source context in CP compare mode
When comparing it is possible to compare across athletes; e.g. their 2013 season vs my 2013 season -- which means we need to use the sourceContext for any items when aggregating / fetching the data.
This commit is contained in:
@@ -1310,7 +1310,7 @@ CpintPlot::calculateForDateRanges(QList<CompareDateRange> compareDateRanges)
|
||||
for (int i = 0; i < compareDateRanges.size(); ++i) {
|
||||
CompareDateRange range = compareDateRanges.at(i);
|
||||
if (range.isChecked()) {
|
||||
RideFileCache bestsForRange(context, range.start, range.end, isFiltered, files, rangemode);
|
||||
RideFileCache bestsForRange(range.sourceContext, range.start, range.end, isFiltered, files, rangemode);
|
||||
bests.append(bestsForRange);
|
||||
|
||||
if (bestsForRange.meanMaxArray(series).size()) {
|
||||
|
||||
Reference in New Issue
Block a user