13
0

Fix appearing ghost note after drag select in internal edit mode.

This commit is contained in:
André Nusser 2015-11-30 10:46:26 +01:00 committed by Robin Gareus
parent cf6a3afcaa
commit 2d786617bb

View File

@ -574,11 +574,12 @@ MidiRegionView::button_release (GdkEventButton* ev)
_mouse_state = None;
break;
case SelectRectDragging:
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);
_mouse_state = None;
create_ghost_note (ev->x, ev->y);
break;