diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-07-01 18:03:29 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-07-01 18:03:29 -0400 |
commit | 176660fff471435cd97aacd60a03ffe95f1407b9 (patch) | |
tree | 552bac4eeeb4144b523e48ea85b2960656f77817 /gtk2_ardour/route_ui.cc | |
parent | 8a6e9c19d7858df5cfa4905d79d330328e5a0410 (diff) |
fix logic of RouteUI::set_color_from_route()
Diffstat (limited to 'gtk2_ardour/route_ui.cc')
-rw-r--r-- | gtk2_ardour/route_ui.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gtk2_ardour/route_ui.cc b/gtk2_ardour/route_ui.cc index 71ba34069e..858fbcad14 100644 --- a/gtk2_ardour/route_ui.cc +++ b/gtk2_ardour/route_ui.cc @@ -1599,7 +1599,11 @@ RouteUI::route_state_id () const int RouteUI::set_color_from_route () { - return 0; + if (_route->presentation_info().color_set()) { + return 0; /* nothing to do */ + } + + return 1; /* pick a color */ } /** @return true if this name should be used for the route, otherwise false */ |