Skip to content

Commit

Permalink
Fix #291847 and GH#17428 : Irregular measure not marked when followed…
Browse files Browse the repository at this point in the history
… by start repeat barline

Backport of musescore#17429
  • Loading branch information
Jojo-Schmitz committed May 30, 2023
1 parent 1bbee5a commit 4fac3e9
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions libmscore/barline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -701,9 +701,13 @@ void BarLine::draw(QPainter* painter) const
break;
}
Segment* s = segment();
if (s && s->isEndBarLineType() && !score()->printing() && score()->showUnprintable()) {
Measure* m = s->measure();
if (m->isIrregular() && score()->markIrregularMeasures() && !m->isMMRest()) {
if (s && !score()->printing() && score()->showUnprintable()) {
Measure* m;
if (s->isEndBarLineType())
m = s->measure();
else
m = s->measure()->prevMeasure();
if (m && m->isIrregular() && score()->markIrregularMeasures() && !m->isMMRest()) {
painter->setPen(MScore::layoutBreakColor);
QFont f("Edwin");
f.setPointSizeF(12 * spatium() * MScore::pixelRatio / SPATIUM20);
Expand Down

0 comments on commit 4fac3e9

Please sign in to comment.