Skip to content

Commit

Permalink
Fixed setting of staff id when appending new staff to part
Browse files Browse the repository at this point in the history
  • Loading branch information
Eism committed Aug 6, 2021
1 parent 6cac143 commit 39caaf3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/notation/internal/masternotationparts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,9 @@ void MasterNotationParts::appendStaff(Staff* staff, const ID& destinationPartId)

startGlobalEdit();

//! NOTE: will be generated later after adding to the score
staff->setId(Ms::INVALID_ID);

NotationParts::appendStaff(staff, destinationPartId);

for (INotationPartsPtr parts : excerptsParts()) {
Expand Down
3 changes: 0 additions & 3 deletions src/notation/internal/notationparts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,6 @@ void NotationParts::appendStaff(Staff* staff, const ID& destinationPartId)
staff->setScore(score());
staff->setPart(destinationPart);

//! NOTE: will be generated later after adding to the score
staff->setId(Ms::INVALID_ID);

insertStaff(staff, staffIndex);

setBracketsAndBarlines();
Expand Down

0 comments on commit 39caaf3

Please sign in to comment.