fix from 2.X for automation line clear command using the wrong object in the memento command

git-svn-id: svn://localhost/ardour2/branches/3.0@7134 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2010-05-21 15:08:57 +00:00
parent df3996991c
commit b1c3a22498
1 changed files with 2 additions and 3 deletions

View File

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