1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-27 21:24:47 +01:00

Added missing size check

This commit is contained in:
Martin Tůma 2016-03-23 20:48:22 +01:00
parent 9c16c3498c
commit 7cd005873d

View File

@ -146,6 +146,9 @@ void Track::heartRateGraph(QVector<QPointF> &graph) const
qreal dist = 0; qreal dist = 0;
QVector<QPointF> raw; QVector<QPointF> raw;
if (!_data.size())
return;
if (std::isnan(_data.at(0).heartRate)) if (std::isnan(_data.at(0).heartRate))
return; return;
raw.append(QPointF(0, _data.at(0).heartRate)); raw.append(QPointF(0, _data.at(0).heartRate));