mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 23:05:04 +01:00
do not alter visible note range of MidiView if data range did not change
This commit is contained in:
parent
b41ab993ec
commit
4dbacf0cb6
1 changed files with 4 additions and 1 deletions
|
|
@ -1163,9 +1163,12 @@ MidiView::model_changed()
|
|||
low_note = _model->lowest_note ();
|
||||
hi_note = _model->highest_note ();
|
||||
|
||||
uint8_t old_low = _midi_context.lowest_data_note ();
|
||||
uint8_t old_high = _midi_context.highest_data_note ();
|
||||
|
||||
_midi_context.update_data_note_range (low_note, hi_note);
|
||||
|
||||
if (_midi_context.visibility_range_style() == MidiViewBackground::ContentsRange) {
|
||||
if (((old_low != low_note) || (old_high != hi_note)) && _midi_context.visibility_range_style() == MidiViewBackground::ContentsRange) {
|
||||
maybe_set_note_range (low_note, hi_note);
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue