From bf2b7d0605e8e0f4e5d304e84fb2ccb5051f427b Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Thu, 20 Nov 2014 13:59:16 +0000 Subject: [PATCH] More CP tooltip .. model curve is null when not shown, so better check before ignoring the tooltip update --- src/CPPlot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CPPlot.cpp b/src/CPPlot.cpp index f7ea4d213..cc950868c 100644 --- a/src/CPPlot.cpp +++ b/src/CPPlot.cpp @@ -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) {