Skip to content

Commit

Permalink
fix #267131 - [MusicXML export] print new-system missing in multi-mea…
Browse files Browse the repository at this point in the history
…sure rests
  • Loading branch information
lvinken authored and lasconic committed Dec 26, 2017
1 parent 47d361b commit 8968e0c
Show file tree
Hide file tree
Showing 5 changed files with 824 additions and 5 deletions.
15 changes: 10 additions & 5 deletions mscore/exportxml.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4439,12 +4439,17 @@ void ExportMusicXml::print(Measure* m, int idx, int staffCount, int staves)

if (!previousMeasure)
currentSystem = TopSystem;
else if (m->parent() && previousMeasure->parent()) {
if (m->parent()->parent() != previousMeasure->parent()->parent())
currentSystem = NewPage;
else if (m->parent() != previousMeasure->parent())
currentSystem = NewSystem;
else {
const auto mSystem = m->mmRest1()->system();
const auto previousMeasureSystem = previousMeasure->mmRest1()->system();

if (mSystem && previousMeasureSystem) {
if (mSystem->page() != previousMeasureSystem->page())
currentSystem = NewPage;
else if (mSystem != previousMeasureSystem)
currentSystem = NewSystem;
}
}

bool prevMeasLineBreak = false;
bool prevMeasPageBreak = false;
Expand Down
Binary file added mtest/musicxml/io/testMultiMeasureRest4.pdf
Binary file not shown.
Loading

0 comments on commit 8968e0c

Please sign in to comment.