summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-05-21 14:14:21 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-05-21 14:14:21 +0000
commit5e0ce8a7f07afcede694e0e27e8be4edaf46e5c6 (patch)
tree96f7b74634f8af8e522334de3dd4e8147dcae5d2
parent8ec4653aa324f0426ee8aabb8710f6e96b30ca6b (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
-rw-r--r--gtk2_ardour/automation_line.cc4
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 ();
}