1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-28 05:34:47 +01:00

Fixed elevation source selection logic

This commit is contained in:
Martin Tůma 2023-04-10 17:21:02 +02:00
parent 1bbc57173e
commit aec052edaf

View File

@ -74,8 +74,8 @@ GraphPair Route::elevation() const
} else { } else {
Graph gps(gpsElevation()); Graph gps(gpsElevation());
return (gps.isEmpty()) return (gps.isEmpty())
? GraphPair(gps, _show2ndElevation ? demElevation() : Graph()) ? GraphPair(demElevation(), Graph())
: GraphPair(demElevation(), Graph()); : GraphPair(gps, _show2ndElevation ? demElevation() : Graph());
} }
} }