diff options
author | David Robillard <d@drobilla.net> | 2015-03-13 22:30:11 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2015-03-13 22:30:11 -0400 |
commit | 700cb13b36699674741f2781eae73adb44dc0932 (patch) | |
tree | ee44d3c0a3774c696f13f14ab4af6a9650564b2d /gtk2_ardour/midi_region_view.cc | |
parent | 51f4e33dd105ace7035ace239abed78a86919020 (diff) |
Fix note visibility (#0006168).
Diffstat (limited to 'gtk2_ardour/midi_region_view.cc')
-rw-r--r-- | gtk2_ardour/midi_region_view.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index 230136c72d..d8305a1111 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -1665,7 +1665,7 @@ MidiRegionView::note_in_region_range (const boost::shared_ptr<NoteType> note, bo const framecnt_t tick_frames = Evoral::Beats::tick().to_ticks(trackview.session()->frame_rate()); const framepos_t note_start_frames = source_beats_to_region_frames (note->time()); const bool outside = ((note_start_frames <= -tick_frames) || - (note_start_frames > _region->last_frame())); + (note_start_frames >= _region->length())); visible = (note->note() >= midi_stream_view()->lowest_note()) && (note->note() <= midi_stream_view()->highest_note()); |