fix #32611: alignment of small upstem chords

This commit is contained in:
Marc Sabatella 2014-09-08 00:38:06 -06:00
parent f5e8522b11
commit 52c0a97b0f

View file

@ -775,11 +775,16 @@ void Score::layoutChords3(QList<Note*>& notes, Staff* staff, Segment* segment)
aclist.append(acel);
++nAcc;
}
qreal hw = note->headWidth();
qreal hw = note->headWidth(); // actual head width, including note & chord mag
Chord* chord = note->chord();
bool _up = chord->up();
qreal stemX = chord->stemPosX();
qreal stemX = chord->stemPosX(); // stem position for nominal notehead, but allowing for mag
// for small upstem chords, set stem to minimum of actual and nominal head width
// this allows the chord alignment code in layoutChords() to function correctly
if (_up && chord->small())
stemX = qMin(noteHeadWidth(), hw);
qreal overlapMirror;
if (chord->stem()) {