Skip to content

Commit

Permalink
fix #48011: take care of & in text when importing MusicXML files
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Mar 8, 2015
1 parent ffdba00 commit 46fc076
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mscore/importxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ static void addText(VBox* vbx, Score* s, QString strTxt, TextStyleType stl)
if (!strTxt.isEmpty()) {
Text* text = new Text(s);
text->setTextStyleType(stl);
text->setText(strTxt);
text->setPlainText(strTxt);
vbx->add(text);
}
}
Expand All @@ -813,7 +813,7 @@ static void addText2(VBox* vbx, Score* s, QString strTxt, TextStyleType stl, Ali
if (!strTxt.isEmpty()) {
Text* text = new Text(s);
text->setTextStyleType(stl);
text->setText(strTxt);
text->setPlainText(strTxt);
text->textStyle().setAlign(v);
text->textStyle().setYoff(yoffs);
vbx->add(text);
Expand Down

0 comments on commit 46fc076

Please sign in to comment.