save state of an automation list, even if empty, because it might exist in the histor...
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 9 Jan 2017 14:07:15 +0000 (14:07 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 9 Jan 2017 15:01:55 +0000 (15:01 +0000)
libs/ardour/automatable.cc

index 99c949fdcbbd2c7c54950c5fa34408160e50e600..7ad930f60b510284823cd85c78cd6f53b1d73bf0 100644 (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 ());
                }
        }