diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2015-07-16 16:13:24 -0500 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2015-07-16 16:13:24 -0500 |
commit | 46c83693284ece4a732d26e62113ea4ac584d539 (patch) | |
tree | 6e191e809b84b1c4d2aa36af6e8878996a109332 /gtk2_ardour/midi_time_axis.cc | |
parent | edce75973c076ab1fa66cc6d601a30fcbbcd5dd4 (diff) | |
parent | d9c0aa4236796d981a5d939bbc5d0d5a2e1910fe (diff) |
merge fix
Diffstat (limited to 'gtk2_ardour/midi_time_axis.cc')
-rw-r--r-- | gtk2_ardour/midi_time_axis.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/midi_time_axis.cc b/gtk2_ardour/midi_time_axis.cc index be475216c1..e412b82c32 100644 --- a/gtk2_ardour/midi_time_axis.cc +++ b/gtk2_ardour/midi_time_axis.cc @@ -1509,8 +1509,9 @@ boost::shared_ptr<MidiRegion> MidiTimeAxisView::add_region (framepos_t pos, framecnt_t length, bool commit) { Editor* real_editor = dynamic_cast<Editor*> (&_editor); - - real_editor->begin_reversible_command (Operations::create_region); + if (commit) { + real_editor->begin_reversible_command (Operations::create_region); + } playlist()->clear_changes (); real_editor->snap_to (pos, RoundNearest); |