mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-10 15:36:24 +01:00
use correct property when PresentationInfo::color is set from XML
This commit is contained in:
parent
e19646c3b1
commit
1874aa6acd
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue