Skip to content

Commit

Permalink
fix #22997: Spanners in MusicXML crash MuseScore
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Oct 3, 2013
1 parent 28235c1 commit a8ea849
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mscore/importxml.cpp
Expand Up @@ -1749,7 +1749,7 @@ void MusicXml::xmlPart(QDomElement e, QString id)
}

// qDebug("wedge list:");
QMap<Spanner*, QPair<int, int> >::const_iterator i = spanners.constBegin();
auto i = spanners.constBegin();
while (i != spanners.constEnd()) {
Spanner* sp = i.key();
int tick1 = i.value().first;
Expand Down Expand Up @@ -2825,6 +2825,7 @@ void MusicXml::direction(Measure* measure, int staff, QDomElement e)
if (type == "crescendo" || type == "diminuendo") {
if (hairpin) {
qDebug("overlapping wedge not supported");
spanners.remove(hairpin);
delete hairpin;
hairpin = 0;
}
Expand Down

0 comments on commit a8ea849

Please sign in to comment.