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:
parent
df3996991c
commit
b1c3a22498
|
@ -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 ();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue