use codified heuristic for "is-color-set?"

This commit is contained in:
Paul Davis 2016-06-09 16:24:41 -04:00
parent 624715cca7
commit 2ee3fefc41
1 changed files with 2 additions and 2 deletions

View 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()));
}