mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
MidiView: no reason to suspend note range changes until after _active_note check
This commit is contained in:
parent
1c09bb88be
commit
33d6d5a330
1 changed files with 2 additions and 2 deletions
|
|
@ -1162,8 +1162,6 @@ MidiView::model_changed()
|
|||
|
||||
EC_LOCAL_TEMPO_SCOPE_ARG (_editing_context);
|
||||
|
||||
MidiViewBackground::NoteRangeSuspender nrs (_midi_context);
|
||||
|
||||
if (_active_notes) {
|
||||
// Currently recording
|
||||
const samplecnt_t zoom = _editing_context.get_current_zoom();
|
||||
|
|
@ -1182,6 +1180,8 @@ MidiView::model_changed()
|
|||
return;
|
||||
}
|
||||
|
||||
MidiViewBackground::NoteRangeSuspender nrs (_midi_context);
|
||||
|
||||
for (_optimization_iterator = _events.begin(); _optimization_iterator != _events.end(); ++_optimization_iterator) {
|
||||
_optimization_iterator->second->invalidate ();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue