Skip to content

Commit

Permalink
fix #47106 change semantic of section break
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Feb 25, 2015
1 parent 94ad084 commit 2d53773
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions libmscore/layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2223,7 +2223,9 @@ bool Score::layoutSystem(qreal& minWidth, qreal systemWidth, bool isFirstSystem,
case LayoutMode::LINE:
case LayoutMode::PAGE:
case LayoutMode::SYSTEM:
continueFlag = !(curMeasure->lineBreak() || curMeasure->pageBreak());
continueFlag = !(curMeasure->lineBreak()
|| curMeasure->sectionBreak()
|| curMeasure->pageBreak());
break;
}
}
Expand Down Expand Up @@ -2295,7 +2297,7 @@ bool Score::layoutSystem(qreal& minWidth, qreal systemWidth, bool isFirstSystem,
switch (_layoutMode) {
case LayoutMode::PAGE:
case LayoutMode::SYSTEM:
pbreak = curMeasure->pageBreak() || curMeasure->lineBreak();
pbreak = curMeasure->pageBreak() || curMeasure->lineBreak() || curMeasure->sectionBreak();
break;
case LayoutMode::FLOAT:
case LayoutMode::LINE:
Expand Down Expand Up @@ -2475,7 +2477,9 @@ bool Score::layoutSystem1(qreal& minWidth, bool isFirstSystem, bool longName)
case LayoutMode::LINE:
case LayoutMode::PAGE:
case LayoutMode::SYSTEM:
continueFlag = !(curMeasure->lineBreak() || curMeasure->pageBreak());
continueFlag = !(curMeasure->lineBreak()
|| curMeasure->sectionBreak()
|| curMeasure->pageBreak());
break;
}
}
Expand Down Expand Up @@ -2504,7 +2508,7 @@ bool Score::layoutSystem1(qreal& minWidth, bool isFirstSystem, bool longName)
switch (_layoutMode) {
case LayoutMode::PAGE:
case LayoutMode::SYSTEM:
pbreak = curMeasure->pageBreak() || curMeasure->lineBreak();
pbreak = curMeasure->pageBreak() || curMeasure->lineBreak() || curMeasure->sectionBreak();
break;
case LayoutMode::FLOAT:
case LayoutMode::LINE:
Expand Down

0 comments on commit 2d53773

Please sign in to comment.