Skip to content

Commit

Permalink
fix #37651
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Oct 28, 2014
1 parent e4b19ff commit aa05b92
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions libmscore/measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3172,6 +3172,18 @@ void Measure::layoutX(qreal stretch)
if ((pt & Segment::Type::KeySig) || firstClef)
minDistance = qMax(minDistance, clefKeyRightMargin);
}
// special case:
// make extra space for ties continued from previous system
if (cr->type() == Element::Type::CHORD) {
Chord* c = static_cast<Chord*>(cr);
if (system()->firstMeasure() == this && c->tick() == tick()) {
for (Note* note : c->notes()) {
if (note->tieBack()) {
minDistance = qMax(minDistance, _spatium * 2);
}
}
}
}

// calculate space needed for segment
// take cr position into account
Expand Down

0 comments on commit aa05b92

Please sign in to comment.