summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_time_axis.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-01-19 17:38:56 +0000
committerCarl Hetherington <carl@carlh.net>2011-01-19 17:38:56 +0000
commit1e8586742e48f56bb81fa14c50442cec23894dfd (patch)
tree717797af5e3e87e67a1356e14a5d74520cbbd904 /gtk2_ardour/midi_time_axis.cc
parent074d58fc6f97c225e804d32b5d2b8f09e4d512da (diff)
Fix session range location by hooking into the undo system. Fixes #3654.
git-svn-id: svn://localhost/ardour2/branches/3.0@8539 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/midi_time_axis.cc')
-rw-r--r--gtk2_ardour/midi_time_axis.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc
index 59cfe4abbd..41c85a193d 100644
--- a/gtk2_ardour/midi_time_axis.cc
+++ b/gtk2_ardour/midi_time_axis.cc
@@ -52,6 +52,7 @@
#include "ardour/session_playlist.h"
#include "ardour/tempo.h"
#include "ardour/utils.h"
+#include "ardour/operations.h"
#include "midi++/names.h"
@@ -1028,7 +1029,7 @@ MidiTimeAxisView::add_region (framepos_t pos, framecnt_t length, bool commit)
{
Editor* real_editor = dynamic_cast<Editor*> (&_editor);
- real_editor->begin_reversible_command (_("create region"));
+ real_editor->begin_reversible_command (Operations::create_region);
playlist()->clear_changes ();
real_editor->snap_to (pos, 0);