fix deadlock in Editor::define_one_bar()

This commit is contained in:
Paul Davis 2023-01-16 14:54:11 -07:00
parent 58594e2554
commit db987cf046
1 changed files with 1 additions and 1 deletions

View File

@ -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 */