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()
This commit is contained in:
Paul Davis 2021-11-13 07:54:28 -07:00
parent 8a59f3fe8e
commit f0cd3b5c0c

View File

@ -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());