fix #264712 - [MusicXML import] incorrect handling of instrument name with ampersand
This commit is contained in:
parent
b3feb3a971
commit
5cdc29ca4c
2 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
//---------------------------------------------------------
|
||||
|
|
|
@ -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&);
|
||||
|
|
Loading…
Reference in a new issue