mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
ensure a locally scoped tempo map in MidiView::{model,view}_changed()
This commit is contained in:
parent
d681c2d42c
commit
cab3d96a4c
1 changed files with 7 additions and 0 deletions
|
|
@ -1117,6 +1117,8 @@ MidiView::model_changed()
|
|||
return;
|
||||
}
|
||||
|
||||
EC_LOCAL_TEMPO_SCOPE_ARG (_editing_context);
|
||||
|
||||
MidiViewBackground::NoteRangeSuspender nrs (_midi_context);
|
||||
|
||||
if (_active_notes) {
|
||||
|
|
@ -1280,6 +1282,9 @@ MidiView::view_changed()
|
|||
}
|
||||
|
||||
if (_active_notes) {
|
||||
|
||||
EC_LOCAL_TEMPO_SCOPE_ARG (_editing_context);
|
||||
|
||||
for (auto & [ note, gui ] : _events) {
|
||||
if (note->end_time() != std::numeric_limits<Temporal::Beats>::max()) {
|
||||
update_note (gui);
|
||||
|
|
@ -1292,6 +1297,8 @@ MidiView::view_changed()
|
|||
return;
|
||||
}
|
||||
|
||||
EC_LOCAL_TEMPO_SCOPE_ARG (_editing_context);
|
||||
|
||||
for (auto & [ note, gui] : _events) {
|
||||
|
||||
bool visible;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue