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): 18.104.22.1688021803, revision: 3224f34
* OS: Windows 10 (10.0), Arch.: x86_64, MuseScore version (64-bit): 22.214.171.1245136428, revision: 2ba915f