Skip to content

Commit

Permalink
Merge pull request #19606 from sammik/xml-import-title-frame-parts
Browse files Browse the repository at this point in the history
fix #19576 title frame to all parts in xml import file
  • Loading branch information
cbjeukendrup committed Oct 12, 2023
2 parents bb935e7 + 8e73ab9 commit e4c02f3
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,7 @@ static void createDefaultHeader(Score* const score)
}

const auto vbox = createAndAddVBoxForCreditWords(score);
vbox->setExcludeFromOtherParts(false);
addText(vbox, score, strTitle.toHtmlEscaped(), TextStyleType::TITLE);
addText(vbox, score, strSubTitle.toHtmlEscaped(), TextStyleType::SUBTITLE);
addText(vbox, score, strComposer.toHtmlEscaped(), TextStyleType::COMPOSER);
Expand Down Expand Up @@ -866,6 +867,9 @@ static void createMeasuresAndVboxes(Score* const score,
if (pageStartMeasureNrs.count(i) || i == 0) {
++pageNr;
vbox = addCreditWords(score, crWords, pageNr, pageSize, true);
if (i == 0 && vbox) {
vbox->setExcludeFromOtherParts(false);
}
}

// create and add the measure
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
<Staff id="1">
<VBox>
<height>10</height>
<excludeFromParts>0</excludeFromParts>
<Text>
<style>title</style>
<text>Duration Large Error</text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
<Staff id="1">
<VBox>
<height>10</height>
<excludeFromParts>0</excludeFromParts>
<Text>
<style>title</style>
<text>Duration Rounding Error</text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@
<Staff id="1">
<VBox>
<height>3.5</height>
<excludeFromParts>0</excludeFromParts>
<Text>
<style>title</style>
<offset x="0" y="-0.0564445"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -532,6 +532,7 @@ Gtr.</shortName>
<Staff id="1">
<VBox>
<height>10</height>
<excludeFromParts>0</excludeFromParts>
<Text>
<style>title</style>
<text>Sample</text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@
<Staff id="1">
<VBox>
<height>10</height>
<excludeFromParts>0</excludeFromParts>
</VBox>
<Measure>
<voice>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@
<Staff id="1">
<VBox>
<height>12.5</height>
<excludeFromParts>0</excludeFromParts>
<Text>
<style>title</style>
<offset x="0" y="-0.00874889"/>
Expand Down

0 comments on commit e4c02f3

Please sign in to comment.