Fix error in drawing length of ghost MIDI notes in note drawing mode

This commit is contained in:
Paul Davis 2021-11-04 18:25:45 -06:00
parent 859d43855e
commit 2d9eb6ec81

View File

@ -3912,7 +3912,7 @@ MidiRegionView::update_ghost_note (double x, double y, uint32_t state)
_ghost_note->show();
/* calculate time in of a single grid units worth of beats, at the start of source */
const Temporal::Beats length = get_grid_beats (_region->source_position()) + snapped_beats;
const Temporal::Beats length = get_grid_beats (_region->source_position() + timepos_t (snapped_beats));
_ghost_note->note()->set_time (snapped_beats);
_ghost_note->note()->set_length (length);