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 Apr 10, 2024
1 parent 368b1c0 commit 95da978
Showing 1 changed file with 20 additions and 16 deletions.
36 changes: 20 additions & 16 deletions libmscore/barline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@
// the file LICENCE.GPL
//=============================================================================

#include "articulation.h"
#include "barline.h"
#include "score.h"
#include "sym.h"
#include "staff.h"
#include "part.h"
#include "system.h"
#include "fermata.h"
#include "image.h"
#include "marker.h"
#include "measure.h"
#include "part.h"
#include "score.h"
#include "segment.h"
#include "articulation.h"
#include "stafftype.h"
#include "xml.h"
#include "marker.h"
#include "stafflines.h"
#include "spanner.h"
#include "undo.h"
#include "fermata.h"
#include "staff.h"
#include "stafflines.h"
#include "stafftype.h"
#include "sym.h"
#include "symbol.h"
#include "image.h"
#include "system.h"
#include "undo.h"
#include "xml.h"

namespace Ms {

Expand Down Expand Up @@ -739,9 +739,13 @@ void BarLine::draw(QPainter* painter) const
break;
}
Segment* s = segment();
if (s && s->isEndBarLineType() && !score()->printing()) {
Measure* m = s->measure();
if (m->isIrregular() && score()->markIrregularMeasures() && !m->isMMRest()) {
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() && !m->isMMRest()) {
painter->setPen(MScore::layoutBreakColor);
QFont f("Edwin");
f.setPointSizeF(12 * spatium() * MScore::pixelRatio / SPATIUM20);
Expand Down

0 comments on commit 95da978

Please sign in to comment.