fix #39901: Undo of concert pitch produces incorrect transposition