fix for scores that change from old-style chord description to wysiwyg
This commit is contained in:
parent
62952d79e1
commit
055d24adbc
1 changed files with 4 additions and 1 deletions
|
@ -246,10 +246,13 @@ void Harmony::read(XmlReader& e)
|
|||
else if (!Text::readProperties(e))
|
||||
e.unknown();
|
||||
}
|
||||
if (_textName == "" && _id > 0) {
|
||||
// if chord has valid extension tag, use it over name tag
|
||||
if (_id > 0) {
|
||||
const ChordDescription* cd = descr();
|
||||
if (cd)
|
||||
_textName = cd->names.front();
|
||||
else
|
||||
_id = -1;
|
||||
}
|
||||
if (_textName != "") {
|
||||
_parsedForm = new ParsedChord;
|
||||
|
|
Loading…
Reference in a new issue