Skip to content

Commit

Permalink
fixed linking of staves after adding a part
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanPudashkin committed Aug 6, 2021
1 parent f6e0502 commit a6f2693
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/notation/internal/notationparts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,6 +577,8 @@ void NotationParts::appendPart(Part* part)
Ms::Fraction startTick = score()->firstMeasure()->tick();
Ms::Fraction endTick = score()->lastMeasure()->tick();
Ms::Excerpt::cloneStaff2(staff, staffCopy, startTick, endTick);

score()->undo(new Ms::Link(staffCopy, staff));
}

part->setScore(score());
Expand Down

0 comments on commit a6f2693

Please sign in to comment.