Crash on load of score with staff type change on measure 1

• Jul 10, 2019 - 03:10
Reported version
3.2
Priority
P1 - High
Type
Functional
Frequency
Few
Severity
S2 - Critical
Reproducibility
Always
Status
closed
Regression
No
Workaround
No
Project

1) default score
2) add staff type change to bar 1
3) save
4) close
5) reload

Result: crash, trying to set the properties on the staff type change. We're looking up the measure by tick, but there are no measures added yet, so no measure is returned.


Comments

Status PR created fixed

Fixed in branch master, commit af8f3762cb

_fix #291969: Crash on load of score with staff type change on measure 1

If a staff type change occurs on the first measure, Staff::staffTypeListChanged() will be called on a score that does not have any measures yet. In this case, we do not have to update the layout range at this time, because there is not yet anything to layout._

Fix version
3.3.0