Crash on Undo after adding measures with timeline open
Excepted behavior: No crashes, measures are deleted.
Actual behavior: crashes
Steps to reproduce bug
1. Create new score
2. Add Measures
Menu -> Add -> Measures -> Insert Measures -> Number of measures to insert: 2 -> OK
3. Open timeline (Menu -> View -> Timeline)
4. Try undo
If I swap step3 and step4, it still crashes.
* OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 126.96.36.1998021803, revision: 3224f34
* OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 188.8.131.525136428, revision: 2ba915f