From 2c8babf41ea3809720fe99d074a4f74ad84b8271 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 30 Dec 2014 20:01:18 -0500 Subject: Fix stuck note display while recording. This doesn't make sense, but I'm okay with that. --- gtk2_ardour/midi_region_view.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gtk2_ardour/midi_region_view.cc') diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index 7fe9158211..95f572072e 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -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 (); } -- cgit v1.2.3