mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-04-15 05:32:21 +00:00
Avoid crash on bad chart.xml
An example reported at the users forum shows lcoung can be negative leading to a crash.
This commit is contained in:
@@ -782,8 +782,7 @@ LTMPlot::setData(LTMSettings *set)
|
||||
|
||||
// we need to fill in the gaps sadly
|
||||
int lcount = xdata[count];
|
||||
|
||||
if (lcount) {
|
||||
if (lcount > 0) {
|
||||
// calculated values
|
||||
QVector<double> xtrend(lcount);
|
||||
QVector<double> btrend(lcount);
|
||||
|
||||
Reference in New Issue
Block a user