From f0cd3b5c0c05aa08e3f2c2421facadeecc3e6162 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 13 Nov 2021 07:54:28 -0700 Subject: [PATCH] editor: when the tempo map changes, update the per-thread pointer TempoMap::use() merely returns the current per-thread tempo map pointer; if a change is signalled, we should force an update of the per-thread ptr via TempoMap::fetch() --- gtk2_ardour/editor_tempodisplay.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_tempodisplay.cc b/gtk2_ardour/editor_tempodisplay.cc index 86eb50401b..43263ce8ea 100644 --- a/gtk2_ardour/editor_tempodisplay.cc +++ b/gtk2_ardour/editor_tempodisplay.cc @@ -256,7 +256,7 @@ void Editor::tempo_map_changed () { TempoMap::Metrics metrics; - TempoMap::use()->get_metrics (metrics); + TempoMap::fetch()->get_metrics (metrics); draw_metric_marks (metrics); compute_bbt_ruler_scale (_leftmost_sample, _leftmost_sample + current_page_samples());