Crash on deleting last instrument
MuseScore crashes if you delete the only remaining instrument (staff) in the score. The same situation also occurs often (but not always) when deleting the topmost instrument (or staff) from a score.
Steps to reproduce:
- Create a new score with one instrument (or use the demo score)
- Open Create -> Instruments...
- Select the instrument on the right and click the "Remove" button
- Click OK to close the dialog
Expected behaviour: The dialog closes, and the removed staff (or staves) are removed from the score, leaving a blank page, except for titles and other text not directly related to the staff.
Actual behaviour: MuseScore crashes immediately upon clicking OK, throwing up a C++ runtime error.
Comments
Confirmed in 0.9.4 and 0.9.5 RC2
See http://www.musescore.org/en/node/3634
Automatically closed -- issue fixed for 2 weeks with no activity.
Automatically closed -- issue fixed for 2 weeks with no activity.
Automatically closed -- issue fixed for 2 weeks with no activity.
Automatically closed -- issue fixed for 2 weeks with no activity.
Automatically closed -- issue fixed for 2 weeks with no activity.
Automatically closed -- issue fixed for 2 weeks with no activity.
Automatically closed -- issue fixed for 2 weeks with no activity.
See #3634: Crash removing staff