projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
624715c
)
use codified heuristic for "is-color-set?"
author
Paul Davis
<paul@linuxaudiosystems.com>
Thu, 9 Jun 2016 20:24:41 +0000
(16:24 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Thu, 9 Jun 2016 20:24:41 +0000
(16:24 -0400)
gtk2_ardour/vca_master_strip.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/vca_master_strip.cc
b/gtk2_ardour/vca_master_strip.cc
index 7dce146694b237170b1901c0e0e966afc99273ee..ecdb74f4643e97f4da6185a38c29c25125d97b85 100644
(file)
--- a/
gtk2_ardour/vca_master_strip.cc
+++ b/
gtk2_ardour/vca_master_strip.cc
@@
-60,9
+60,9
@@
VCAMasterStrip::VCAMasterStrip (Session* s, boost::shared_ptr<VCA> v)
PresentationInfo::color_t c = _vca->presentation_info().color ();
- /*
XXX need a (better) test of "has a color"
*/
+ /*
set color for the VCA, if not already done.
*/
- if (
c == 0
) {
+ if (
!_vca->presentation_info().color_set()
) {
_vca->presentation_info().set_color (gdk_color_to_rgba (unique_random_color()));
}