fix #288162: wrong space after barline with accidental in invisible staff

This commit is contained in:
Marc Sabatella 2019-04-26 10:54:04 -06:00
parent d5096d9ec4
commit 641c413653

View file

@ -3972,7 +3972,11 @@ void Measure::setStretchedWidth(qreal w)
static bool hasAccidental(Segment* s)
{
Score* score = s->score();
for (int track = 0; track < s->score()->ntracks(); ++track) {
Staff* staff = score->staff(track2staff(track));
if (!staff->show())
continue;
Element* e = s->element(track);
if (!e || !e->isChord())
continue;