when exiting internal edit mode because of a mouse button press on a non-MIDI region, _join_object_range_state is set to NONE, not OBJECT, which would block selection of the clicked-upon region. fix that, to prevent an assert()-driven crash when the drag ends and there are no regions selected
This commit is contained in:
parent
2b745cab64
commit
50e3e61881
@ -607,7 +607,7 @@ Editor::button_selection (ArdourCanvas::Item* /*item*/, GdkEvent* event, ItemTyp
|
||||
|
||||
switch (item_type) {
|
||||
case RegionItem:
|
||||
if (!get_smart_mode() || (_join_object_range_state == JOIN_OBJECT_RANGE_OBJECT)) {
|
||||
if (!get_smart_mode() || (_join_object_range_state != JOIN_OBJECT_RANGE_RANGE)) {
|
||||
if (press) {
|
||||
if (mouse_mode != MouseRange) {
|
||||
set_selected_regionview_from_click (press, op);
|
||||
|
Loading…
Reference in New Issue
Block a user