Skip to content

Commit

Permalink
fix #18507: some text items modified in score after generation of lin…
Browse files Browse the repository at this point in the history
…ked parts not reflected in those parts
  • Loading branch information
lasconic committed Feb 25, 2014
1 parent ac92500 commit 60e5fe4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libmscore/excerpt.cpp
Expand Up @@ -169,7 +169,7 @@ void cloneStaves(Score* oscore, Score* score, const QList<int>& map)
TieMap tieMap;

MeasureBaseList* nmbl = score->measures();
for (MeasureBase* mb = oscore->measures()->first(); mb; mb = mb->next()) {
for (MeasureBase* mb = oscore->measures()->first(); mb; mb = mb->next()) {
MeasureBase* nmb = 0;
if (mb->type() == Element::HBOX)
nmb = new HBox(score);
Expand Down Expand Up @@ -304,7 +304,11 @@ void cloneStaves(Score* oscore, Score* score, const QList<int>& map)
if (st == LayoutBreak::PAGE || st == LayoutBreak::LINE)
continue;
}
Element* ne = e->clone();
Element* ne;
if (e->type() == Element::TEXT) // clone the title, subtitle etc...
ne = e->linkedClone();
else
ne = e->clone();
ne->setScore(score);
nmb->add(ne);
}
Expand Down

0 comments on commit 60e5fe4

Please sign in to comment.