avoid unnecessary extra fetch of thread-local tempo map after undo/redo

This commit is contained in:
Paul Davis 2021-02-10 09:30:43 -07:00
parent 25ecc54208
commit 901f593af5

View file

@ -3057,10 +3057,8 @@ TempoMap::MementoBinder::set_state (XMLNode const & node, int version) const
TempoMap::SharedPtr map (write_copy());
/* change the state of the copy */
map->set_state (node, version);
/* do the update step of RCU */
/* do the update step of RCU. This will also update this thread's map pointer */
update (map);
/* now update this thread's view of the current tempo map */
fetch ();
}
void