- XMLNode& automation = Automatable::get_automation_state();
- if (!automation.children().empty()
- || !automation.properties().empty()
- || !_visible_controls.empty()) {
-
- for (set<Evoral::Parameter>::iterator x = _visible_controls.begin();
- x != _visible_controls.end(); ++x) {
- if (x != _visible_controls.begin()) {
- sstr << ' ';
- }
- sstr << *x;
- }
-
- automation.add_property ("visible", sstr.str());
+ XMLNode& automation = Automatable::get_automation_xml_state();
+ if (!automation.children().empty() || !automation.properties().empty()) {