Skip to content

Commit

Permalink
change order in which routes, option routes and alternatives are painted
Browse files Browse the repository at this point in the history
  • Loading branch information
obraunsdorf committed Mar 28, 2022
1 parent d2190f1 commit a92b8be
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/gui/pbcPlayerView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -283,14 +283,14 @@ void PBCPlayerView::paintRoutes() {
for (PBCRouteSP route : _playerSP->optionRoutes()) {
__paintRoutes(route, RouteType::OptionRoute);
}
if (_playerSP->route() != NULL) {
__paintRoutes(_playerSP->route(), RouteType::Route);
if (_playerSP->alternativeRoute(2) != NULL) {
__paintRoutes(_playerSP->alternativeRoute(2), RouteType::Alternative2);
}
if (_playerSP->alternativeRoute(1) != NULL) {
__paintRoutes(_playerSP->alternativeRoute(1), RouteType::Alternative1);
}
if (_playerSP->alternativeRoute(2) != NULL) {
__paintRoutes(_playerSP->alternativeRoute(2), RouteType::Alternative2);
if (_playerSP->route() != NULL) {
__paintRoutes(_playerSP->route(), RouteType::Route);
}
} catch(const PBCRenderingException& e) {
_playerSP->resetOptionRoutes();
Expand Down

0 comments on commit a92b8be

Please sign in to comment.