Skip to content

Commit

Permalink
Merge pull request #3561 from notengrafik/pr/blank-page
Browse files Browse the repository at this point in the history
Add multiple page breaks if MusicXML encodes blank pages
  • Loading branch information
lpugin authored Dec 19, 2023
2 parents c4eb5b0 + 5b73ba1 commit 74a35fd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/iomusxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3695,8 +3695,11 @@ void MusicXmlInput::ReadMusicXmlPrint(pugi::xml_node node, Section *section)
assert(section);

if (node.attribute("new-page").as_bool()) {
Pb *pb = new Pb();
section->AddChild(pb);
const int pageBreaks = node.attribute("blank-page").as_int() + 1;
for (int i = 0; i < pageBreaks; ++i) {
Pb *pb = new Pb();
section->AddChild(pb);
}
}

if (node.attribute("new-system").as_bool()) {
Expand Down

0 comments on commit 74a35fd

Please sign in to comment.