the MementoCommand for automation clearing should be based on the AutomationList not the AutomationEvent - this fixes errors at session reload complaining that the object for a history XML node can't be found

git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@7130 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-05-21 14:14:21 +00:00
parent 8ec4653aa3
commit 5e0ce8a7f0

View file

@ -1249,9 +1249,9 @@ void
AutomationLine::clear ()
{
/* parent must create command */
XMLNode &before = get_state();
XMLNode &before = alist.get_state();
alist.clear();
trackview.editor.current_session()->add_command (new MementoCommand<AutomationLine>(*this, &before, &get_state()));
trackview.editor.current_session()->add_command (new MementoCommand<AutomationList>(alist, &before, &get_state()));
trackview.editor.current_session()->commit_reversible_command ();
trackview.editor.current_session()->set_dirty ();
}