dragging anchor of instrument change text needs to revert staff's transposition
Draggin instrument change text will leave behind incorrectly transposed notes. I noticed this while testing Marc's fix for #9352: Add ability to set transposition by range.
If start with a bunch of middle C's:
And then add instrument change text to Tenor Saxophone on first note of meas 2:
Then we have the notes correctly transposed according to the new instrument's transposition.
However, if we then drag the instrument change text right to meas 3, those notes in meas 2 should revert to middle C without any transposition, but instead you will see the notes in meas 2 are left in an incorrectly-transposed state:
Note that the although the staff transposition is incorrect, it is at least in the correct octave. Also if you listen to the playback, you will hear the notes in meas 2 at the correct pitch of concert middle C and played correctly in the original instrument (piano). Now, interestingly if you save the score inst-change-dragged.mscz and re-open it, you will see the score looks the same (with the notes in meas 2 displaying as middle D, but that the notes sound as middle D. So it seems the incorrect residual staff transposition was not saved into the mscx (which is good, because it shouldn't have been saved), but of course those notes were saved as the incorrect pitch, D.
Similarly, there if a problem if drag the change instrument text left of where it was initially inputted:
Those two tenor sax note in meas 2 display as C but should be displayed as D. And if you save and reload the score, inst-change-meas-2-dragged-left.mscz then similarly will note that the those two C notes for tenor will sound incorrectly as Bb.
This bug was found on 2.1-dev 13d7332 nightly windows build.