diff options
author | Robin Gareus <robin@gareus.org> | 2017-03-02 21:20:09 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-03-02 21:20:09 +0100 |
commit | f0a3c84e8c0387e404b255a9c16e6f344d2db51c (patch) | |
tree | fd483e1c4700c4a78e7d0b8a48e9b60b415825e1 /gtk2_ardour | |
parent | 5524bac04bc7f4901991bd1fb4747abcb7b43db4 (diff) |
Fix crash when inserting time with split intersected regions
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 67f90fd43d..581326e278 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -7485,6 +7485,11 @@ Editor::insert_time ( (*i)->clear_changes (); (*i)->clear_owned_changes (); + if (!in_command) { + begin_reversible_command (_("insert time")); + in_command = true; + } + if (opt == SplitIntersected) { /* non musical split */ (*i)->split (MusicFrame (pos, 0)); @@ -7492,10 +7497,6 @@ Editor::insert_time ( (*i)->shift (pos, frames, (opt == MoveIntersected), ignore_music_glue); - if (!in_command) { - begin_reversible_command (_("insert time")); - in_command = true; - } vector<Command*> cmds; (*i)->rdiff (cmds); _session->add_commands (cmds); |