mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Set Activity plot to Blank when the x-axis series is not present
Fixes #3588
This commit is contained in:
@@ -1813,8 +1813,10 @@ AllPlotWindow::rideSelected()
|
||||
return;
|
||||
}
|
||||
|
||||
// ignore if null, or manual / empty
|
||||
if (!ride || !ride->ride() || !ride->ride()->dataPoints().count()) {
|
||||
// ignore if null, or manual / empty, or x-axis series is not present
|
||||
if (!ride || !ride->ride() || !ride->ride()->dataPoints().count() ||
|
||||
(comboDistance->currentIndex() == 1 && !ride->ride()->isDataPresent(RideFile::km)) ||
|
||||
(comboDistance->currentIndex() != 1 && !ride->ride()->isDataPresent(RideFile::secs))) {
|
||||
current = NULL;
|
||||
setIsBlank(true);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user