From db987cf04689b59cbdff9f7754b70b99c16b1fb0 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 16 Jan 2023 14:54:11 -0700 Subject: [PATCH] fix deadlock in Editor::define_one_bar() --- gtk2_ardour/editor_ops.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 764a05d8da..1affc59449 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -7450,7 +7450,7 @@ Editor::define_one_bar (timepos_t const & start, timepos_t const & end) { timecnt_t length = start.distance (end); - TempoMap::WritableSharedPtr tmap (TempoMap::write_copy()); + TempoMap::SharedPtr tmap (TempoMap::use()); const Meter& m (tmap->meter_at (start)); /* length = 1 bar */