mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
More CP tooltip
.. model curve is null when not shown, so better check before ignoring the tooltip update
This commit is contained in:
@@ -1256,7 +1256,7 @@ CPPlot::setRide(RideItem *rideItem)
|
||||
void
|
||||
CPPlot::pointHover(QwtPlotCurve *curve, int index)
|
||||
{
|
||||
if (criticalSeries == CriticalPowerWindow::watts && showBest && curve == modelCurve)
|
||||
if (criticalSeries == CriticalPowerWindow::watts && showBest && curve == modelCurve && modelCurve != NULL)
|
||||
return; // ignore model curve hover
|
||||
|
||||
if (index >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user