summaryrefslogtreecommitdiff
path: root/gtk2_ardour/vca_master_strip.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-06-09 16:24:41 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-06-09 16:24:41 -0400
commit2ee3fefc418cbb0770297266e446e84b1db598a4 (patch)
treed6f535031a86ef7aac902249f2df8db47712fcb0 /gtk2_ardour/vca_master_strip.cc
parent624715cca7e96d94d04c35927325a8212454907d (diff)
use codified heuristic for "is-color-set?"
Diffstat (limited to 'gtk2_ardour/vca_master_strip.cc')
-rw-r--r--gtk2_ardour/vca_master_strip.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/vca_master_strip.cc b/gtk2_ardour/vca_master_strip.cc
index 7dce146694..ecdb74f464 100644
--- 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()));
}