From 66f73f40dbbd9246699b710b03e26b752f5fb8f4 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Thu, 7 Mar 2019 09:50:00 -0600 Subject: [PATCH] Fix thinko: if the entered_regionview is already part of the selection, do not treat it as a special case when splitting. --- gtk2_ardour/editor_ops.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.30.2