diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2019-03-07 09:50:00 -0600 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2019-03-07 09:50:00 -0600 |
commit | 66f73f40dbbd9246699b710b03e26b752f5fb8f4 (patch) | |
tree | 665fa388a23f92511b0c81d5da8cbe6f6c3959d4 /gtk2_ardour/editor_ops.cc | |
parent | b774ef1e204ba7de99f32a4a7678b7ca4b74b228 (diff) |
Fix thinko: if the entered_regionview is already part of the selection, do not treat it as a special case when splitting.
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index c01a8c5fe9..01647a8d5a 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -6432,7 +6432,8 @@ Editor::split_region () //this fixes the unexpected case where you point at a region, but // * nothing happens OR // * some other region (maybe off-screen) is split. - if (_edit_point == EditAtMouse && entered_regionview) { + //NOTE: if the entered_regionview is /part of the selection/ then we should operate on the selection as usual + if (_edit_point == EditAtMouse && entered_regionview && !entered_regionview->selected()) { rs.add (entered_regionview); } else { rs = selection->regions; //might be empty |