Skip to content

Commit

Permalink
fix #292927 - [MusicXML export] non-arpeggiate creates invalid XML ex…
Browse files Browse the repository at this point in the history
…port
  • Loading branch information
lvinken committed Aug 17, 2019
1 parent 4857c41 commit be390ea
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions mscore/exportxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2315,7 +2315,7 @@ void ExportMusicXml::chordAttributes(Chord* chord, Notations& notations, Technic

static void arpeggiate(Arpeggio* arp, bool front, bool back, XmlWriter& xml, Notations& notations)
{
QString tagName = "";
QString tagName;
switch (arp->arpeggioType()) {
case ArpeggioType::NORMAL:
notations.tag(xml);
Expand Down Expand Up @@ -2346,9 +2346,10 @@ static void arpeggiate(Arpeggio* arp, bool front, bool back, XmlWriter& xml, Not
break;
}

tagName += addPositioningAttributes(arp);
if (tagName != "")
if (tagName != "") {
tagName += addPositioningAttributes(arp);
xml.tagE(tagName);
}
}

//---------------------------------------------------------
Expand Down

0 comments on commit be390ea

Please sign in to comment.