mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix SEGV in AllPlot on empty ride.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user