From 5e0ce8a7f07afcede694e0e27e8be4edaf46e5c6 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 21 May 2010 14:14:21 +0000 Subject: 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 --- gtk2_ardour/automation_line.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/automation_line.cc b/gtk2_ardour/automation_line.cc index 94273626c3..7fb88d660f 100644 --- a/gtk2_ardour/automation_line.cc +++ b/gtk2_ardour/automation_line.cc @@ -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(*this, &before, &get_state())); + trackview.editor.current_session()->add_command (new MementoCommand(alist, &before, &get_state())); trackview.editor.current_session()->commit_reversible_command (); trackview.editor.current_session()->set_dirty (); } -- cgit v1.2.3