diff options
author | nick_m <mainsbridge@gmail.com> | 2015-11-14 03:14:23 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2015-11-14 03:14:23 +1100 |
commit | 024adf3a4d14b3bc9f473ed298d5d6c23b14c21e (patch) | |
tree | aced096c13f6c4651e12e6dd043cfb65ba1c5f56 /gtk2_ardour/editor_drag.h | |
parent | 6210b63a136287388176ee947409fedbd67343db (diff) |
Fix #6673 - another prematurely closed undo transaction.
- add_midi_region used to commit, resulting in
_region->set_position() adding a command when there was
no current transaction. The sub-bug here was that repeatedly
calling set_position() on the new region resulted in nonsensical
automation movement after the drag.
Diffstat (limited to 'gtk2_ardour/editor_drag.h')
-rw-r--r-- | gtk2_ardour/editor_drag.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_drag.h b/gtk2_ardour/editor_drag.h index d8f667529e..cd1b0c2474 100644 --- a/gtk2_ardour/editor_drag.h +++ b/gtk2_ardour/editor_drag.h @@ -246,7 +246,7 @@ protected: /* sets snap delta from unsnapped pos */ void setup_snap_delta (framepos_t pos); - boost::shared_ptr<ARDOUR::Region> add_midi_region (MidiTimeAxisView*); + boost::shared_ptr<ARDOUR::Region> add_midi_region (MidiTimeAxisView*, bool commit); void show_verbose_cursor_time (framepos_t); void show_verbose_cursor_duration (framepos_t, framepos_t, double xoffset = 0); |