continue with MTC debugging
[ardour.git] / libs / ardour / automation_list.cc
index 2f06f267c1647abad2c9920bdf298bd7fd06a167..c0a652275c17bc7bec505aa6e54bf9525e1a36cb 100644 (file)
@@ -100,7 +100,7 @@ AutomationList::AutomationList (const XMLNode& node, Evoral::Parameter id)
        _state = Off;
        _style = Absolute;
 
-       set_state (node);
+       set_state (node, Stateful::loading_state_version);
 
        if (id) {
                _parameter = id;
@@ -352,7 +352,7 @@ AutomationList::deserialize_events (const XMLNode& node)
 }
 
 int
-AutomationList::set_state (const XMLNode& node)
+AutomationList::set_state (const XMLNode& node, int version)
 {
        XMLNodeList nlist = node.children();
        XMLNode* nsos;
@@ -368,7 +368,7 @@ AutomationList::set_state (const XMLNode& node)
 
                if ((nsos = node.child (X_("AutomationList")))) {
                        /* new school in old school clothing */
-                       return set_state (*nsos);
+                       return set_state (*nsos, version);
                }
 
                /* old school */