Skip to content

Commit

Permalink
Parse dynamics when finished editing
Browse files Browse the repository at this point in the history
  • Loading branch information
CMakeScore committed Nov 7, 2024
1 parent 92c997f commit e2b443a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/engraving/dom/dynamic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -957,4 +957,10 @@ String Dynamic::screenReaderInfo() const
}
return String(u"%1: %2").arg(EngravingItem::accessibleInfo(), s);
}

void Dynamic::commitText()
{
setDynamicType(xmlText());
TextBase::commitText();
}
}
3 changes: 3 additions & 0 deletions src/engraving/dom/dynamic.h
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ class Dynamic final : public TextBase
static const std::vector<Dyn> DYN_LIST;

bool m_anchorToEndOfPrevious = false;

protected:
void commitText() override;
};
} // namespace mu::engraving

Expand Down

0 comments on commit e2b443a

Please sign in to comment.