diff --git a/src/data/route.cpp b/src/data/route.cpp index 252e6a88..7fb85619 100644 --- a/src/data/route.cpp +++ b/src/data/route.cpp @@ -74,8 +74,8 @@ GraphPair Route::elevation() const } else { Graph gps(gpsElevation()); return (gps.isEmpty()) - ? GraphPair(gps, _show2ndElevation ? demElevation() : Graph()) - : GraphPair(demElevation(), Graph()); + ? GraphPair(demElevation(), Graph()) + : GraphPair(gps, _show2ndElevation ? demElevation() : Graph()); } }