diff --git a/src/iomusxml.cpp b/src/iomusxml.cpp index 86cb54613d..57f4c2510f 100644 --- a/src/iomusxml.cpp +++ b/src/iomusxml.cpp @@ -1796,8 +1796,7 @@ void MusicXmlInput::ReadMusicXmlAttributes( } // read clef changes as MEI clef and add them to the stack - pugi::xml_node clef = node.child("clef"); - if (clef) { + for (pugi::xml_node clef : node.children("clef")) { // check if we have a staff number short int staffNum = clef.attribute("number").as_int(); staffNum = (staffNum < 1) ? 1 : staffNum;