summaryrefslogtreecommitdiff
path: root/libs/ardour/presentation_info.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-07-01 18:14:21 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2016-07-01 18:14:21 -0400
commit1874aa6acdd0b747cc529f3a881d96bcc7801ab7 (patch)
tree7dfa0fb7d30bfb5ab48cda68cf24e2c156a3653e /libs/ardour/presentation_info.cc
parente19646c3b1abbc7dc8b10e4cf245ce3c4b806fd3 (diff)
use correct property when PresentationInfo::color is set from XML
Diffstat (limited to 'libs/ardour/presentation_info.cc')
-rw-r--r--libs/ardour/presentation_info.cc3
1 files changed, 1 insertions, 2 deletions
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;
}