From cab3d96a4ca5df08292f4ba038cb7c10e8b5bee4 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 20 Oct 2025 14:52:36 -0600 Subject: [PATCH] ensure a locally scoped tempo map in MidiView::{model,view}_changed() --- gtk2_ardour/midi_view.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gtk2_ardour/midi_view.cc b/gtk2_ardour/midi_view.cc index 4287e3ddd5..64b5d3654b 100644 --- a/gtk2_ardour/midi_view.cc +++ b/gtk2_ardour/midi_view.cc @@ -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::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;