Skip to content

Commit

Permalink
Fixed typed text not being displayed when special symbols are selected
Browse files Browse the repository at this point in the history
deleteSelectedText() updates the font family and must be executed before setting the new font family.
  • Loading branch information
CMakeScore committed Nov 7, 2024
1 parent e2b443a commit 21e8a53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engraving/dom/textedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -711,10 +711,10 @@ bool TextBase::edit(EditData& ed)
}
}
if (!s.isEmpty()) {
deleteSelectedText(ed);
if (currentFormat->fontFamily() == u"ScoreText") {
currentFormat->setFontFamily(propertyDefault(Pid::FONT_FACE).value<String>());
}
deleteSelectedText(ed);
score()->undo(new InsertText(m_cursor, s), &ed);

int startPosition = cursor->currentPosition();
Expand Down

0 comments on commit 21e8a53

Please sign in to comment.