projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix logic of RouteUI::set_color_from_route()
[ardour.git]
/
gtk2_ardour
/
route_ui.cc
diff --git
a/gtk2_ardour/route_ui.cc
b/gtk2_ardour/route_ui.cc
index 71ba34069eb758947820d0b06a34baa012803772..858fbcad14f333fc6089a83ee5729c0ff3cdd65a 100644
(file)
--- 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 */