mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 11:45:53 +01:00
Properly handle routes without elevation data as well
This commit is contained in:
parent
fa08c0dbea
commit
c4fd82e5a0
@ -32,6 +32,7 @@ Graph Route::elevation() const
|
||||
GraphSegment &gs = graph.last();
|
||||
|
||||
for (int i = 0; i < _data.size(); i++)
|
||||
if (_data.at(i).hasElevation())
|
||||
gs.append(GraphPoint(_distance.at(i), NAN, _data.at(i).elevation()));
|
||||
|
||||
return graph;
|
||||
|
Loading…
Reference in New Issue
Block a user