Skip to content

Commit

Permalink
fix #270958: Fermata not centered on measure rest, and not following …
Browse files Browse the repository at this point in the history
…horizontal offset
  • Loading branch information
mattmcclinch committed Apr 3, 2018
1 parent b92a6e0 commit c0f48d7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libmscore/fermata.cpp
Expand Up @@ -197,7 +197,12 @@ void Fermata::layout()
return;
}

qreal x = score()->noteHeadWidth() * staff()->mag(0) * .5;
qreal x = 0.0;
Element* e = s->element(track());
if (e)
x = e->x() + e->width() * staff()->mag(0) * .5;
else
x = score()->noteHeadWidth() * staff()->mag(0) * .5;
qreal y = placeAbove() ? styleP(Sid::fermataPosAbove) : styleP(Sid::fermataPosBelow) + staff()->height();

setPos(QPointF(x, y));
Expand Down

0 comments on commit c0f48d7

Please sign in to comment.