use codified heuristic for "is-color-set?"
authorPaul Davis <paul@linuxaudiosystems.com>
Thu, 9 Jun 2016 20:24:41 +0000 (16:24 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Thu, 9 Jun 2016 20:24:41 +0000 (16:24 -0400)
gtk2_ardour/vca_master_strip.cc

index 7dce146694b237170b1901c0e0e966afc99273ee..ecdb74f4643e97f4da6185a38c29c25125d97b85 100644 (file)
@@ -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()));
        }