Skip to content

Commit

Permalink
fix #186706: export 7sus chord to MusicXML fails reimport
Browse files Browse the repository at this point in the history
  • Loading branch information
Jojo-Schmitz authored and lasconic committed Apr 11, 2017
1 parent 4ca351e commit 0a4be97
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions mscore/exportxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5317,12 +5317,9 @@ void ExportMusicXml::harmony(Harmony const* const h, FretDiagram const* const fd
kindTextExtension[i] = kindText[i];
int kindExtension = kindTextExtension.toInt();
if (tagDegree <= kindExtension && (tagDegree & 1) && (kindExtension & 1))
degreeText = "\"\"";
degreeText = " text=\"\"";
}
if (degreeText.isEmpty())
xml.stag("degree");
else
xml.stag("degree text=" + degreeText);
xml.stag("degree");
int alter = 0;
int idx = 3;
if (tag[idx] == '#') {
Expand All @@ -5333,10 +5330,10 @@ void ExportMusicXml::harmony(Harmony const* const h, FretDiagram const* const fd
alter = -1;
++idx;
}
xml.tag("degree-value", tag.mid(idx));
xml.tag(QString("degree-value%1").arg(degreeText), tag.mid(idx));
xml.tag("degree-alter", alter); // finale insists on this even if 0
if (tag.startsWith("add"))
xml.tag("degree-type", "add");
xml.tag(QString("degree-type%1").arg(degreeText), "add");
else if (tag.startsWith("sub"))
xml.tag("degree-type", "subtract");
else if (tag.startsWith("alt"))
Expand Down

0 comments on commit 0a4be97

Please sign in to comment.