From aec052edafb63abb1857ffa96a024d6f88626a44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Mon, 10 Apr 2023 17:21:02 +0200 Subject: [PATCH] Fixed elevation source selection logic --- src/data/route.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); } }