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/pan_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/pan_automation_time_axis.cc')
-rw-r--r-- | gtk2_ardour/pan_automation_time_axis.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gtk2_ardour/pan_automation_time_axis.cc b/gtk2_ardour/pan_automation_time_axis.cc index 267bb6ef09..73d0f7f1aa 100644 --- a/gtk2_ardour/pan_automation_time_axis.cc +++ b/gtk2_ardour/pan_automation_time_axis.cc @@ -23,6 +23,7 @@ #include <ardour/panner.h> #include <gtkmm2ext/popup.h> +#include <pbd/memento_command.h> #include "pan_automation_time_axis.h" #include "automation_line.h" @@ -78,11 +79,10 @@ PanAutomationTimeAxisView::add_automation_event (ArdourCanvas::Item* item, GdkEv AutomationList& alist (lines.front()->the_list()); _session.begin_reversible_command (_("add pan automation event")); - XMLNode &before, &after; - before = alist.get_state(); + XMLNode &before = alist.get_state(); alist.add (when, y); - after = alist.get_state(); - _seession.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 (); } |