summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-05-21 15:08:57 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-05-21 15:08:57 +0000
commitb1c3a224983a6b0cc5c5bb4b042d15f1d67ae5b3 (patch)
treea08bd83eb8ea640f038d651ce31b371650568e78
parentdf3996991cf94e37a4e083eb1cf56b0187484878 (diff)
fix from 2.X for automation line clear command using the wrong object in the memento command
git-svn-id: svn://localhost/ardour2/branches/3.0@7134 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--gtk2_ardour/automation_line.cc5
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 ();
}