mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
don't show axes for non-existent curves
If you don't have altitude, you'll no longer have an axis for feet/meters. Thanks to Gary Smith for pointing out that the previous behavior was silly.
This commit is contained in:
@@ -546,6 +546,12 @@ AllPlot::setData(RideItem *_rideItem)
|
||||
if (!cadArray.empty()) cadCurve->attach(this);
|
||||
if (!altArray.empty()) altCurve->attach(this);
|
||||
|
||||
wattsCurve->setVisible(dataPresent->watts);
|
||||
hrCurve->setVisible(dataPresent->hr);
|
||||
speedCurve->setVisible(dataPresent->kph);
|
||||
cadCurve->setVisible(dataPresent->cad);
|
||||
altCurve->setVisible(dataPresent->alt);
|
||||
|
||||
arrayLength = 0;
|
||||
foreach (const RideFilePoint *point, ride->dataPoints()) {
|
||||
timeArray[arrayLength] = point->secs;
|
||||
|
||||
Reference in New Issue
Block a user