1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-18 03:42:09 +01:00

Fixed broken elevation graph start value

This commit is contained in:
Martin Tůma 2016-03-27 09:45:07 +02:00
parent e05069d653
commit b7f3a64577

View File

@ -102,7 +102,7 @@ void Track::elevationGraph(QVector<QPointF> &graph) const
if (std::isnan(_data.at(0).elevation))
return;
raw.append(QPointF(0, _data.at(0).elevation));
raw.append(QPointF(0, _data.at(0).elevation - _data.at(0).geoidheight));
for (int i = 1; i < _data.size(); i++) {
dist += _dd.at(i-1);
if (std::isnan(_data.at(i).elevation))