Skip to content

Commit

Permalink
Don't add system object staff at staffIdx = 0
Browse files Browse the repository at this point in the history
The first staff already gets system objects by default
  • Loading branch information
mike-spa committed Feb 24, 2025
1 parent f607f85 commit 82f06aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/notation/internal/notationparts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -799,7 +799,7 @@ void NotationParts::moveSystemObjects(const ID& sourceStaffId, const ID& destina
startEdit(TranslatableString("undoableAction", "Move system markings"));

score()->undo(new mu::engraving::RemoveSystemObjectStaff(srcStaff));
if (!score()->isSystemObjectStaff(dstStaff)) {
if (!score()->isSystemObjectStaff(dstStaff) && !dstStaffIdx == 0) {
score()->undo(new mu::engraving::AddSystemObjectStaff(dstStaff));
}

Expand Down

0 comments on commit 82f06aa

Please sign in to comment.