diff --git a/src/engraving/dom/rest.cpp b/src/engraving/dom/rest.cpp index fcfacdbdd9a27..dfced9f764220 100644 --- a/src/engraving/dom/rest.cpp +++ b/src/engraving/dom/rest.cpp @@ -699,7 +699,9 @@ double Rest::rightEdge() const double Rest::centerX() const { - return score()->engravingFont()->width(layoutData()->sym(), mag()) / 2; + SymId sym = layoutData()->sym(); + RectF bbox = symBbox(sym); + return bbox.left() + bbox.width() / 2; } //--------------------------------------------------------- diff --git a/src/engraving/rendering/dev/tlayout.cpp b/src/engraving/rendering/dev/tlayout.cpp index 76b3e1ccb91a3..19d5033277f97 100644 --- a/src/engraving/rendering/dev/tlayout.cpp +++ b/src/engraving/rendering/dev/tlayout.cpp @@ -1935,7 +1935,7 @@ void TLayout::layout(const Fermata* item, Fermata::LayoutData* ldata, const Layo y = chord->y(); } else if (e->isRest()) { const Rest* rest = toRest(e); - x = rest->pos().x() + rest->centerX(); + x = rest->x() + rest->centerX(); y = rest->y(); } else { x = e->x() - e->shape().left() + e->width() * item->staff()->staffMag(Fraction(0, 1)) * .5;