musescore/MuseScore — pull request #65 by heuchi (2012-09-07 17:54:56+00:00)
Title: fix transpose and keysig undo

2 changes in libmscore/undo.cpp:

orig. line 1735:
keysig->staff()->setKey(keysig->segment()->tick(), ks);
was commented out. It does however fix the issue 16506. Do I miss any negative side effects?

starting orig. line 1647:
qSwap(oldElement, newElement) was called too early.
setUpdateKeymap(true) doesn't work because the call to score->cmdUpdateNotes() in Score::undoChangeKeySig will still use the old keymap.