13
0

session: fix for creation of new/default tempo map

This commit is contained in:
Paul Davis 2021-12-21 13:37:44 -07:00
parent 722a159ac1
commit f3fe31da27

View File

@ -343,8 +343,8 @@ Session::Session (AudioEngine &eng,
TempoMap::SharedPtr tmcopy (TempoMap::write_copy()); TempoMap::SharedPtr tmcopy (TempoMap::write_copy());
/* this discards the copy that was made, and installs the new default tempo map */ /* this discards the copy that was made, and installs the new default tempo map */
tmcopy = new TempoMap(); tmcopy.reset (new TempoMap (Tempo (120, 4), Meter (4, 4)));
TempoMap::update (new_tempo_map); TempoMap::update (tmcopy);
created_with = string_compose ("%1 %2", PROGRAM_NAME, revision); created_with = string_compose ("%1 %2", PROGRAM_NAME, revision);