fix #264712 - [MusicXML import] incorrect handling of instrument name with ampersand

This commit is contained in:
Leon Vinken 2018-10-10 07:52:24 +02:00
parent b3feb3a971
commit 5cdc29ca4c
2 changed files with 10 additions and 1 deletions

View file

@ -155,6 +155,15 @@ Instrument::~Instrument()
delete _drumset;
}
//---------------------------------------------------------
// StaffName
//---------------------------------------------------------
StaffName::StaffName(const QString& s, int p) : _name(s), _pos(p)
{
Text::validateText(_name); // enforce HTML encoding
}
//---------------------------------------------------------
// StaffName::write
//---------------------------------------------------------

View file

@ -37,7 +37,7 @@ class StaffName {
public:
StaffName() {}
StaffName(const QString& s, int p=0) : _name(s), _pos(p) {}
StaffName(const QString& s, int p=0);
bool operator==(const StaffName&) const;
void read(XmlReader&);