temporal: special case editing of the initial tempo (#9339)

This commit is contained in:
Paul Davis 2023-06-12 16:46:13 -06:00
parent d742e876d1
commit bb97ade440

View File

@ -1121,6 +1121,12 @@ TempoMap::change_tempo (TempoPoint & p, Tempo const & t)
void
TempoMap::replace_tempo (TempoPoint const & old, Tempo const & t, timepos_t const & time)
{
if (old.sclock() == 0) {
_tempos.front() = t;
reset_starting_at (0);
return;
}
remove_tempo (old, false);
set_tempo (t, time);
}