Skip to content

Commit

Permalink
Fix #25395
Browse files Browse the repository at this point in the history
Fix assert failure on edge case no instrument
  • Loading branch information
mike-spa committed Feb 10, 2025
1 parent 9ff776b commit 1b1cf46
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/engraving/rendering/score/systemlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,11 @@ System* SystemLayout::collectSystem(LayoutContext& ctx)
}
}

if (system->staves().empty()) {
// Edge case. Can only happen if all instruments have been deleted.
return system;
}

/*************************************************************
* SYSTEM NOW HAS A COMPLETE SET OF MEASURES
* Now perform all operation to finalize system.
Expand Down

0 comments on commit 1b1cf46

Please sign in to comment.