diff options
author | Hans Fugal <hans@fugal.net> | 2006-07-29 03:17:11 +0000 |
---|---|---|
committer | Hans Fugal <hans@fugal.net> | 2006-07-29 03:17:11 +0000 |
commit | 1f1c4981de73b13d0b7617d8ebe89d9f22dddec3 (patch) | |
tree | 90ab3942960de1af673d8d2b4423f0b09dd839b4 /gtk2_ardour/redirect_automation_time_axis.cc | |
parent | 277b771a978b10580a46e19f19ae0cf2d8819f46 (diff) |
Compiles, but doesn't link. The link errors are mostly expected and are
tomorrow's task.
git-svn-id: svn://localhost/ardour2/branches/undo@719 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/redirect_automation_time_axis.cc')
-rw-r--r-- | gtk2_ardour/redirect_automation_time_axis.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/redirect_automation_time_axis.cc b/gtk2_ardour/redirect_automation_time_axis.cc index d6e2432338..e3ce4b08c6 100644 --- a/gtk2_ardour/redirect_automation_time_axis.cc +++ b/gtk2_ardour/redirect_automation_time_axis.cc @@ -21,6 +21,7 @@ #include <ardour/redirect.h> #include <ardour/session.h> #include <cstdlib> +#include <pbd/memento_command.h> #include "redirect_automation_time_axis.h" #include "automation_line.h" @@ -97,11 +98,10 @@ RedirectAutomationTimeAxisView::add_automation_event (ArdourCanvas::Item* item, lines.front()->view_to_model_y (y); _session.begin_reversible_command (description); - XMLNode &before, &after; - before = alist.get_state(); + XMLNode &before = alist.get_state(); alist.add (when, y); - after = alist.get_state(); - _session.add_command(MementoCommand<AutomationList>(alist, before, after)); + XMLNode &after = alist.get_state(); + _session.add_command(new MementoCommand<AutomationList>(alist, before, after)); _session.commit_reversible_command (); _session.set_dirty (); } |