diff options
-rw-r--r-- | gtk2_ardour/automation_line.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index 29163c6aaa..6ad5722d5f 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -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 (); } |