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