1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +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 {
Graph gps(gpsElevation());
return (gps.isEmpty())
? GraphPair(gps, _show2ndElevation ? demElevation() : Graph())
: GraphPair(demElevation(), Graph());
? GraphPair(demElevation(), Graph())
: GraphPair(gps, _show2ndElevation ? demElevation() : Graph());
}
}