fix for scores that change from old-style chord description to wysiwyg

This commit is contained in:
Marc Sabatella 2013-05-16 14:46:12 -06:00
parent 62952d79e1
commit 055d24adbc

View file

@ -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;