Merge pull request #2148 from AntonioBL/resettextstyle
Fix #72051 : reset text to style
This commit is contained in:
commit
e25b67b25e
1 changed files with 2 additions and 1 deletions
|
@ -68,7 +68,8 @@ void InspectorText::resetToStyle()
|
|||
for (Element* e : inspector->el()) {
|
||||
Text* text = static_cast<Text*>(e);
|
||||
text->undoChangeProperty(P_ID::TEXT_STYLE, QVariant::fromValue(score->textStyle(text->textStyleType())));
|
||||
text->undoChangeProperty(P_ID::TEXT, text->plainText());
|
||||
// Preserve <sym> tags
|
||||
text->undoChangeProperty(P_ID::TEXT, text->plainText().toHtmlEscaped().replace("<sym>","<sym>").replace("</sym>","</sym>"));
|
||||
}
|
||||
score->endCmd();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue