mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +01:00
Added missing size check
This commit is contained in:
parent
9c16c3498c
commit
7cd005873d
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user