projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a6e9c1
)
fix logic of RouteUI::set_color_from_route()
author
Paul Davis
<paul@linuxaudiosystems.com>
Fri, 1 Jul 2016 22:03:29 +0000
(18:03 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Fri, 1 Jul 2016 22:03:29 +0000
(18:03 -0400)
gtk2_ardour/route_ui.cc
patch
|
blob
|
history
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 */