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
  • Loading branch information
Jojo-Schmitz committed Feb 19, 2025
1 parent 238aa97 commit b3135ab
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions src/engraving/rendering/score/tdraw.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -841,11 +841,16 @@ void TDraw::draw(const BarLine* item, Painter* painter)
break;
}
Segment* s = item->segment();
if (s && s->isEndBarLineType() && !item->score()->printing()) {
Measure* m = s->measure();
if (m->isIrregular() && item->score()->markIrregularMeasures() && !m->isMMRest()) {
if (s && s->isEndBarLineType() && !item->score()->printing() && item->score()->showUnprintable()
&& item->score()->markIrregularMeasures()) {
Measure* m;
if (s->isEndBarLineType()) {
m = s->measure();
} else {
m = s->measure()->prevMeasure();
}
if (m && m->isIrregular() && item->score()->markIrregularMeasures() && !m->isMMRest()) {
painter->setPen(item->configuration()->invisibleColor());

Font f(u"Edwin", Font::Type::Text);
f.setPointSizeF(12 * item->spatium() / SPATIUM20);
f.setBold(true);
Expand Down

0 comments on commit b3135ab

Please sign in to comment.