Crash on save after creating new part from score with connecting barlines with parts selected in bottom-to-top order
To reproduce, open attached score, go to File -> Parts, click New, check boxes for more than one instrument in bottom-to-top order (e.g., check Viola, Violin II, Violin I), click OK, then attempt to save, or wait for the autosave. MuseScore crashes, and the autorecovery file is corrupted. This can be reproduced with any score with linked parts.
Issue exists in released 2.0.2 and c012358.