save state of an automation list, even if empty, because it might exist in the history state

This commit is contained in:
Paul Davis
2017-01-09 14:07:15 +00:00
parent 7f280e2bed
commit 726d862613

View File

@@ -280,7 +280,7 @@ Automatable::get_automation_xml_state ()
for (Controls::iterator li = controls().begin(); li != controls().end(); ++li) {
boost::shared_ptr<AutomationList> l = boost::dynamic_pointer_cast<AutomationList>(li->second->list());
if (l && !l->empty()) {
if (l) {
node->add_child_nocopy (l->get_state ());
}
}