Skip to content

Commit

Permalink
Read all clef changes
Browse files Browse the repository at this point in the history
  • Loading branch information
rettinghaus committed Dec 16, 2024
1 parent e5f0626 commit c5063f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/iomusxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c5063f5

Please sign in to comment.