Skip to content

Commit

Permalink
fix #22978: crash on loading 1.3 scoresw with empty cleflist and ledg…
Browse files Browse the repository at this point in the history
…er lines
  • Loading branch information
lasconic committed Oct 2, 2013
1 parent da044d7 commit 1282344
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion libmscore/read114.cpp
Expand Up @@ -178,8 +178,13 @@ void Staff::read114(XmlReader& e)
setInvisible(e.readInt());
else if (tag == "slashStyle")
e.skipCurrentElement();
else if (tag == "cleflist")
else if (tag == "cleflist") {
clefs.read(e, _score);
if (clefs.empty()) {
ClefType ct = Clef::clefType("0");
clefs.setClef(0, ClefTypeList(ct, ct));
}
}
else if (tag == "keylist")
_keymap.read(e, _score);
else if (tag == "bracket") {
Expand Down

0 comments on commit 1282344

Please sign in to comment.