13
0

Fix note visibility (#0006168).

This commit is contained in:
David Robillard 2015-03-13 22:30:11 -04:00
parent 51f4e33dd1
commit 700cb13b36

View File

@ -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());