Skip to content

Commit

Permalink
Merge pull request #12310 from mike-spa/correctDisplacedChordFermata
Browse files Browse the repository at this point in the history
Fix #12256: Correct fermata position for displaced chords
  • Loading branch information
RomanPudashkin committed Jul 8, 2022
2 parents 15f0cbc + 4481e83 commit 6a9867d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engraving/libmscore/fermata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ void Fermata::layout()
EngravingItem* e = s->element(track());
if (e) {
if (e->isChord()) {
movePosX(score()->noteHeadWidth() * staff()->staffMag(Fraction(0, 1)) * .5);
movePosX(score()->noteHeadWidth() * staff()->staffMag(Fraction(0, 1)) * .5 + toChord(e)->pos().x());
} else {
movePosX(e->x() + e->width() * staff()->staffMag(Fraction(0, 1)) * .5);
}
Expand Down

0 comments on commit 6a9867d

Please sign in to comment.