From 1874aa6acdd0b747cc529f3a881d96bcc7801ab7 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 1 Jul 2016 18:14:21 -0400 Subject: use correct property when PresentationInfo::color is set from XML --- libs/ardour/presentation_info.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libs/ardour') diff --git a/libs/ardour/presentation_info.cc b/libs/ardour/presentation_info.cc index 654a80f6ce..fe094dae6b 100644 --- a/libs/ardour/presentation_info.cc +++ b/libs/ardour/presentation_info.cc @@ -128,7 +128,7 @@ PresentationInfo::set_state (XMLNode const& node, int /* version */) if ((prop = node.property (X_("color"))) != 0) { color_t c = atoi (prop->value()); if (c != _color) { - pc.add (Properties::order); + pc.add (Properties::color); _color = c; } } @@ -175,7 +175,6 @@ PresentationInfo::color_set () const * this is heuristic, but it is fairly realistic. who will ever set * a color to completely transparent black? only the constructor .. */ - return _color != 0; } -- cgit v1.2.3