mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-18 19:52:09 +01:00
Fixed broken elevation graph start value
This commit is contained in:
parent
e05069d653
commit
b7f3a64577
@ -102,7 +102,7 @@ void Track::elevationGraph(QVector<QPointF> &graph) const
|
|||||||
|
|
||||||
if (std::isnan(_data.at(0).elevation))
|
if (std::isnan(_data.at(0).elevation))
|
||||||
return;
|
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++) {
|
for (int i = 1; i < _data.size(); i++) {
|
||||||
dist += _dd.at(i-1);
|
dist += _dd.at(i-1);
|
||||||
if (std::isnan(_data.at(i).elevation))
|
if (std::isnan(_data.at(i).elevation))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user