Skip to content

Commit

Permalink
Fix stacc and ten following manually-adjusted stems
Browse files Browse the repository at this point in the history
  • Loading branch information
asattely committed Feb 24, 2022
1 parent 79b6d93 commit 6a28552
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/engraving/libmscore/chord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3749,13 +3749,14 @@ void Chord::layoutArticulations()

if (bottom) {
if (!headSide && stem()) {
auto userLen = stem()->userLength();
if (_up) {
y = downPos() - stem()->length();
y = downPos() - stem()->length() - userLen;
if (beam()) {
y -= score()->styleS(Sid::beamWidth).val() * _spatium * .5;
}
} else {
y = upPos() + stem()->length();
y = upPos() + stem()->length() - userLen;
if (beam()) {
y += score()->styleS(Sid::beamWidth).val() * _spatium * .5;
}
Expand Down Expand Up @@ -3789,13 +3790,14 @@ void Chord::layoutArticulations()
y -= a->height() * .5; // center symbol
} else {
if (!headSide && stem()) {
auto userLen = stem()->userLength();
if (_up) {
y = downPos() - stem()->length();
y = downPos() - stem()->length() + userLen;
if (beam()) {
y -= score()->styleS(Sid::beamWidth).val() * _spatium * .5;
}
} else {
y = upPos() + stem()->length();
y = upPos() + stem()->length() + userLen;
if (beam()) {
y += score()->styleS(Sid::beamWidth).val() * _spatium * .5;
}
Expand Down

0 comments on commit 6a28552

Please sign in to comment.