mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-19 11:55:58 +01:00
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:
parent
8ec4653aa3
commit
5e0ce8a7f0
1 changed files with 2 additions and 2 deletions
|
|
@ -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 ();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue