From 176660fff471435cd97aacd60a03ffe95f1407b9 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 1 Jul 2016 18:03:29 -0400 Subject: [PATCH] fix logic of RouteUI::set_color_from_route() --- gtk2_ardour/route_ui.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 */ -- 2.30.2