Skip to content

Commit

Permalink
Make loop boundary a constant
Browse files Browse the repository at this point in the history
Co-authored-by: Laurent Pugin <[email protected]>
  • Loading branch information
th-we and lpugin authored Dec 19, 2023
1 parent 65b5448 commit 5b73ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/iomusxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3695,7 +3695,7 @@ void MusicXmlInput::ReadMusicXmlPrint(pugi::xml_node node, Section *section)
assert(section);

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

0 comments on commit 5b73ba1

Please sign in to comment.