From 210ed97c8e897bc3608ca0419d494ffbb3921254 Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Sat, 19 Apr 2014 20:43:51 +0100 Subject: [PATCH] Fix blank ride plot in compare mode .. when you switch tabs to ride plot having never displayed any ride at all. .. also fixes switching to compare mode when the currently selected ride is blank (has no data). --- src/AllPlotWindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/AllPlotWindow.cpp b/src/AllPlotWindow.cpp index 5b367cd1a..daa4d92cc 100644 --- a/src/AllPlotWindow.cpp +++ b/src/AllPlotWindow.cpp @@ -680,6 +680,14 @@ AllPlotWindow::compareChanged() // new ones .. if (context->isCompareIntervals) { + // first, lets init fullPlot, just in case its never + // been set (ie, switched to us before ever plotting a ride + if (myRideItem) fullPlot->setDataFromRide(myRideItem); + + // and even if the current ride is blank, we're not + // going to be blank !! + setIsBlank(false); + // // SETUP FULLPLOT FOR COMPARE MODE //