Skip to content

Commit

Permalink
No courtesy keysig to last measure if it is followed by frame with a …
Browse files Browse the repository at this point in the history
…section break

Follow up to #25420
  • Loading branch information
Jojo-Schmitz committed Dec 17, 2024
1 parent b532152 commit fffa4ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/engraving/rendering/score/systemlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,9 @@ System* SystemLayout::collectSystem(LayoutContext& ctx)
// Create end barlines and system trailer if needed (cautionary time/key signatures etc)
Measure* lm = system->lastMeasure();
if (lm) {
MeasureLayout::createEndBarLines(lm, true, ctx);
if (ctx.state().prevMeasure() && ! ctx.state().prevMeasure()->sectionBreak()) {
MeasureLayout::createEndBarLines(lm, true, ctx);
}
Measure* nm = lm->nextMeasure();
if (nm) {
MeasureLayout::addSystemTrailer(lm, nm, ctx);
Expand Down

0 comments on commit fffa4ef

Please sign in to comment.