Skip to content

Commit 772de8c

Browse files
authored
Merge pull request #30961 from mike-spa/fixCrashOnBigTimeSig
Fix crash on large time sigs
2 parents 7c44b6b + 262788c commit 772de8c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/engraving/rendering/score/systemlayout.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3026,6 +3026,9 @@ void SystemLayout::centerBigTimeSigsAcrossStaves(const System* system)
30263026
continue;
30273027
}
30283028
staff_idx_t thisStaffIdx = timeSig->effectiveStaffIdx();
3029+
if (thisStaffIdx == muse::nidx) {
3030+
continue;
3031+
}
30293032
staff_idx_t nextStaffIdx = thisStaffIdx;
30303033
for (staff_idx_t idx = thisStaffIdx + 1; idx < nstaves; ++idx) {
30313034
TimeSig* nextTimeSig = toTimeSig(segment.element(staff2track(idx)));

0 commit comments

Comments
 (0)