Fix thinko: if the entered_regionview is already part of the selection, do not treat...
authorBen Loftis <ben@harrisonconsoles.com>
Thu, 7 Mar 2019 15:50:00 +0000 (09:50 -0600)
committerBen Loftis <ben@harrisonconsoles.com>
Thu, 7 Mar 2019 15:50:00 +0000 (09:50 -0600)
gtk2_ardour/editor_ops.cc

index c01a8c5fe9735d969e744fc9c80b1c089f5869eb..01647a8d5ab4114b14512becd9d9df0318a6e623 100644 (file)
@@ -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