From a1f27e1ece9983c588ca95a25e8903cab74f5f83 Mon Sep 17 00:00:00 2001 From: Klaus Rettinghaus Date: Tue, 19 Sep 2023 11:34:13 +0200 Subject: [PATCH 1/2] import measure-numbering --- src/iomusxml.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/iomusxml.cpp b/src/iomusxml.cpp index 716d78f15eb..94e8c50ab43 100644 --- a/src/iomusxml.cpp +++ b/src/iomusxml.cpp @@ -3701,6 +3701,10 @@ void MusicXmlInput::ReadMusicXmlPrint(pugi::xml_node node, Section *section) Sb *sb = new Sb(); section->AddChild(sb); } + + if (std::string(node.child("measure-numbering").text().as_string()) == "none") { + m_doc->GetCurrentScoreDef()->SetMnumVisible(BOOLEAN_false); + } } bool MusicXmlInput::ReadMusicXmlBeamsAndTuplets(const pugi::xml_node &node, Layer *layer, bool isChord) From 03b82b60644bef6fd7ef035e9cd3039414b8f91a Mon Sep 17 00:00:00 2001 From: Klaus Rettinghaus Date: Tue, 19 Sep 2023 11:44:44 +0200 Subject: [PATCH 2/2] formatting --- src/iomusxml.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/iomusxml.cpp b/src/iomusxml.cpp index 94e8c50ab43..fd13a4b99da 100644 --- a/src/iomusxml.cpp +++ b/src/iomusxml.cpp @@ -3701,7 +3701,7 @@ void MusicXmlInput::ReadMusicXmlPrint(pugi::xml_node node, Section *section) Sb *sb = new Sb(); section->AddChild(sb); } - + if (std::string(node.child("measure-numbering").text().as_string()) == "none") { m_doc->GetCurrentScoreDef()->SetMnumVisible(BOOLEAN_false); }