Fix SEGV in AllPlot on empty ride.

This commit is contained in:
Mark Liversedge
2011-08-05 23:07:55 +01:00
parent d3f8230aed
commit e6de81a87f

View File

@@ -653,8 +653,8 @@ AllPlot::setDataFromPlot(AllPlot *plot, int startidx, int stopidx)
referencePlot = plot;
//setTitle(plot->rideItem->ride()->startTime().toString(GC_DATETIME_FORMAT));
// You got to give me some data first!
if (!plot->distanceArray.count() || !plot->timeArray.count()) return;
// reference the plot for data and state
rideItem = plot->rideItem;