Fix appearing ghost note after drag select in internal edit mode.
This commit is contained in:
parent
cf6a3afcaa
commit
2d786617bb
@ -574,11 +574,12 @@ MidiRegionView::button_release (GdkEventButton* ev)
|
|||||||
_mouse_state = None;
|
_mouse_state = None;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case SelectRectDragging:
|
|
||||||
case AddDragging:
|
case AddDragging:
|
||||||
|
/* Only create a ghost note when we added a note, not when we were drag-selecting. */
|
||||||
|
create_ghost_note (ev->x, ev->y);
|
||||||
|
case SelectRectDragging:
|
||||||
editor.drags()->end_grab ((GdkEvent *) ev);
|
editor.drags()->end_grab ((GdkEvent *) ev);
|
||||||
_mouse_state = None;
|
_mouse_state = None;
|
||||||
create_ghost_note (ev->x, ev->y);
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user