From b7f3a6457731686faa3fe26d7582ec052425dc93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C3=B9ma?= Date: Sun, 27 Mar 2016 09:45:07 +0200 Subject: [PATCH] Fixed broken elevation graph start value --- src/track.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/track.cpp b/src/track.cpp index 906fb9aa..9300b0b4 100644 --- a/src/track.cpp +++ b/src/track.cpp @@ -102,7 +102,7 @@ void Track::elevationGraph(QVector &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))