From c5063f5075446b7c456ff7ddd24b7ab884e7c632 Mon Sep 17 00:00:00 2001 From: Klaus Rettinghaus Date: Mon, 16 Dec 2024 11:25:44 +0100 Subject: [PATCH] Read all clef changes --- src/iomusxml.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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;