Deleting Change Instrument potentially damages score

• May 2, 2019 - 22:07
Reported version
3.0
Type
Functional
Frequency
Once
Severity
S2 - Critical
Reproducibility
Always
Status
active
Regression
No
Workaround
No
Project

If you have a score with a Instrument change with transposing instruments in transposing notation, deleting the change will lead MuseScore to automatically transpose the content back to the original instrument. But when you delete such a change while having other things selected (as might accidently happen when cleaning up), this does not trigger, instead you end up with a broken score, for not only the notes are not transposed correctly, but also some notes are shifted by one octave.
The playback and the non transposing notation is only affected after saving and reloading.

Steps to reproduce:
1) Do an instrument change to an instrument of different transposition
2) Write some notes
3) Select the change plus some other objects and delete the selection
4) Save and reload

I’ve attached an example for demonstrative purposes.

Regards,
Valentin

Attachment Size
Change Instrument issue.mscz 11.05 KB