diff --git a/libmscore/barline.cpp b/libmscore/barline.cpp index d750e98cd2bef..86a36c5ce7725 100644 --- a/libmscore/barline.cpp +++ b/libmscore/barline.cpp @@ -701,13 +701,13 @@ void BarLine::draw(QPainter* painter) const break; } Segment* s = segment(); - if (s && !score()->printing() && score()->showUnprintable()) { + if (s && !score()->printing() && score()->showUnprintable() && score()->markIrregularMeasures()) { Measure* m; if (s->isEndBarLineType()) m = s->measure(); else m = s->measure()->prevMeasure(); - if (m && m->isIrregular() && score()->markIrregularMeasures() && !m->isMMRest()) { + if (m && m->isIrregular() && !m->isMMRest()) { painter->setPen(MScore::layoutBreakColor); QFont f("Edwin"); f.setPointSizeF(12 * spatium() * MScore::pixelRatio / SPATIUM20);