Skip to content

Commit

Permalink
Fix GH#17428: Irregular measure not marked when followed by start rep…
Browse files Browse the repository at this point in the history
…eat barline
  • Loading branch information
Jojo-Schmitz committed May 2, 2023
1 parent aed9b5b commit 1df9e17
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/engraving/libmscore/barline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -734,9 +734,12 @@ void BarLine::draw(Painter* painter) const
break;
}
Segment* s = segment();
if (s && s->isEndBarLineType() && !score()->printing() && score()->showUnprintable()) {
if (s && !score()->printing() && score()->showUnprintable() && score()->markIrregularMeasures()) {
Measure* m = s->measure();
if (m->isIrregular() && score()->markIrregularMeasures() && !m->isMMRest()) {
if ((barLineType() & BarLineType::START_REPEAT) && m->prevMeasure() && (m->prevMeasure()->endBarLineType() != BarLineType::END_REPEAT)) {
m = m->prevMeasure();
}
if (m->isIrregular() && !m->isMMRest()) {
painter->setPen(engravingConfiguration()->formattingMarksColor());
draw::Font f(u"Edwin", Font::Type::Text);
f.setPointSizeF(12 * spatium() / SPATIUM20);
Expand Down

0 comments on commit 1df9e17

Please sign in to comment.