diff options
author | nick_m <mainsbridge@gmail.com> | 2016-12-23 22:18:43 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-12-23 22:18:43 +1100 |
commit | 7bf3345ada6c625e57e6eb5102c43c747856dffa (patch) | |
tree | cc2920b7f693bdb3cce2784049ce0e6cfdb04b4e /gtk2_ardour | |
parent | a6b4d8b8c641c141b62e4bec5d205d9d0e8d1e2d (diff) |
remove double check for note range in MGR::update_note/hit()
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/ghostregion.cc | 4 |
1 files 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<ArdourCanvas::Rectangle*>(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<ArdourCanvas::Polygon*>(ev->item))) { |