diff options
author | nick_m <mainsbridge@gmail.com> | 2016-12-30 02:21:12 +1100 |
---|---|---|
committer | nick_m <mainsbridge@gmail.com> | 2016-12-30 02:21:12 +1100 |
commit | 5091a043627f0506252a7d18b56e47dc95e99eca (patch) | |
tree | 2f5dcef584c12255784e669cca3added6b0cc259 /gtk2_ardour | |
parent | 52275254a7adb9a446c104cc7dcfde82d1792786 (diff) |
another small improvement to MGR::add_note() performance.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/ghostregion.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gtk2_ardour/ghostregion.cc b/gtk2_ardour/ghostregion.cc index 85afd1480b..f48680cef7 100644 --- a/gtk2_ardour/ghostregion.cc +++ b/gtk2_ardour/ghostregion.cc @@ -343,9 +343,8 @@ MidiGhostRegion::add_note (NoteBase* n) uint8_t const note_num = n->note()->note(); double const h = note_height(trackview, mv); double const y = note_y(trackview, mv, note_num); - if (n->x0() < base_rect->x0() || n->x1() > base_rect->x1()) { - event->item->hide(); - } else if (note_num < mv->lowest_note() || note_num > mv->highest_note()) { + + if (!n->item()->visible()) { event->item->hide(); } else { if (!event->is_hit) { |