diff --git a/src/track.cpp b/src/track.cpp index b798f542..958407e6 100644 --- a/src/track.cpp +++ b/src/track.cpp @@ -146,6 +146,9 @@ void Track::heartRateGraph(QVector &graph) const qreal dist = 0; QVector raw; + if (!_data.size()) + return; + if (std::isnan(_data.at(0).heartRate)) return; raw.append(QPointF(0, _data.at(0).heartRate));