File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -271,7 +271,7 @@ void TextBase::insertSym(EditData& ed, SymId id)
271271 deleteSelectedText (ed);
272272 String s = score ()->engravingFont ()->toString (id);
273273 cursor->format ()->setFontFamily (u" ScoreText" );
274- score ()->undo (new InsertText (m_cursor , s), &ed);
274+ score ()->undo (new InsertText (cursor , s), &ed);
275275}
276276
277277// ---------------------------------------------------------
@@ -958,6 +958,7 @@ void TextBase::paste(EditData& ed, const String& txt)
958958 sym.clear ();
959959 } else if (token == " /sym" ) {
960960 symState = false ;
961+ static_cast <TextEditData*>(ed.getData (this ).get ())->cursor ()->setFormat (format);
961962 insertSym (ed, SymNames::symIdByName (sym));
962963 } else {
963964 prepareFormat (token, format);
You can’t perform that action at this time.
0 commit comments