summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_region_view.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/midi_region_view.cc')
-rw-r--r--gtk2_ardour/midi_region_view.cc6
1 files changed, 3 insertions, 3 deletions
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 ();
}