Fix stuck note display while recording.

This doesn't make sense, but I'm okay with that.
This commit is contained in:
David Robillard
2014-12-30 20:01:18 -05:00
parent 2c36e96c97
commit 2c8babf41e

View File

@@ -1670,9 +1670,9 @@ MidiRegionView::update_sustained (Note* ev, bool update_ghost_regions)
if (!note->length()) {
if (_active_notes && note->note() < 128) {
Note* const old_rect = _active_notes[note->note()];
if (old_rect && old_rect != ev) {
/* There is an active note on this key, but it's not this note,
so we have a stuck note. Finish the old rectangle here. */
if (old_rect) {
/* There is an active note on this key, so we have a stuck
note. Finish the old rectangle here. */
old_rect->set_x1 (x);
old_rect->set_outline_all ();
}