diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-05-21 14:14:21 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-05-21 14:14:21 +0000 |
commit | 5e0ce8a7f07afcede694e0e27e8be4edaf46e5c6 (patch) | |
tree | 96f7b74634f8af8e522334de3dd4e8147dcae5d2 /gtk2_ardour | |
parent | 8ec4653aa324f0426ee8aabb8710f6e96b30ca6b (diff) |
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
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/automation_line.cc | 4 |
1 files 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<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 (); } |