Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Last system fill threshold" should also apply to section breaks #10577

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/engraving/layout/layoutsystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,9 @@ System* LayoutSystem::collectSystem(const LayoutOptions& options, LayoutContext&
// proportional to the difference between the current length and the target length.
// After few iterations, the length will converge to the target length.
qreal newRest = systemWidth - curSysWidth;
if (ctx.curMeasure == 0 && ((curSysWidth / systemWidth) <= score->styleD(Sid::lastSystemFillLimit))) {
// We do not stretch last system if curSysWidth is <= lastSystemFillLimit
if ((ctx.curMeasure == 0 || (lm && lm->sectionBreak()))
&& ((curSysWidth / systemWidth) <= score->styleD(Sid::lastSystemFillLimit))) {
// We do not stretch last system of a section (or the last of the piece) if curSysWidth is <= lastSystemFillLimit
newRest = 0;
}
if (MScore::noHorizontalStretch) { // Debug feature
Expand Down