diff --git a/src/engraving/dom/textbase.cpp b/src/engraving/dom/textbase.cpp index 33e40f97e4d1b..960574f379883 100644 --- a/src/engraving/dom/textbase.cpp +++ b/src/engraving/dom/textbase.cpp @@ -361,7 +361,9 @@ void TextCursor::changeSelectionFormat(FormatId id, const FormatValue& val) } } - m_text->renderer()->layoutText1(m_text); + if (editing()) { + m_text->renderer()->layoutText1(m_text); + } } const CharFormat TextCursor::selectedFragmentsFormat() const diff --git a/src/engraving/rendering/score/textlayout.cpp b/src/engraving/rendering/score/textlayout.cpp index cb887d0db5cde..75250833c7c53 100644 --- a/src/engraving/rendering/score/textlayout.cpp +++ b/src/engraving/rendering/score/textlayout.cpp @@ -53,6 +53,8 @@ void TextLayout::layoutBaseTextBase(TextBase* item, LayoutContext&) void TextLayout::layoutBaseTextBase1(const TextBase* item, TextBase::LayoutData* ldata) { + TRACEFUNC; + if (item->explicitParent() && item->layoutToParentWidth()) { LD_CONDITION(item->parentItem()->ldata()->isSetBbox()); }