From 7bf3345ada6c625e57e6eb5102c43c747856dffa Mon Sep 17 00:00:00 2001 From: nick_m Date: Fri, 23 Dec 2016 22:18:43 +1100 Subject: [PATCH] remove double check for note range in MGR::update_note/hit() --- gtk2_ardour/ghostregion.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/ghostregion.cc b/gtk2_ardour/ghostregion.cc index 221f0a2949..b9af45b6d4 100644 --- a/gtk2_ardour/ghostregion.cc +++ b/gtk2_ardour/ghostregion.cc @@ -383,7 +383,7 @@ MidiGhostRegion::update_note (Note* note, bool hide) double const y = note_y(trackview, mv, note_num); double const h = note_height(trackview, mv); - if (hide || note_num < mv->lowest_note() || note_num > mv->highest_note()) { + if (hide) { ev->item->hide(); } else { if ((_tmp_rect = dynamic_cast(ev->item))) { @@ -415,7 +415,7 @@ MidiGhostRegion::update_hit (Hit* hit, bool hide) double const h = note_height(trackview, mv); double const y = note_y(trackview, mv, note_num); - if (hide || note_num < mv->lowest_note() || note_num > mv->highest_note()) { + if (hide) { ev->item->hide(); } else { if ((_tmp_poly = dynamic_cast(ev->item))) { -- 2.30.2