More CP tooltip

.. model curve is null when not shown, so better
   check before ignoring the tooltip update
This commit is contained in:
Mark Liversedge
2014-11-20 13:59:16 +00:00
parent db34e57a65
commit bf2b7d0605

View File

@@ -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) {