Skip to content

Commit

Permalink
Merge pull request #2896 from lasconic/fix-126916
Browse files Browse the repository at this point in the history
fix #126916: Undo after creation of parts with linked staves causes corruption
  • Loading branch information
lasconic committed Dec 1, 2016
2 parents 3136cdb + c143ce2 commit 3bec846
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libmscore/undo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3665,10 +3665,10 @@ void LinkUnlink::doUnlink()
qWarning("nothing found to unlink");
}

void LinkStaff::redo() { s1->linkTo(s2); }
void LinkStaff::undo() { s1->unlink(s2); }
void UnlinkStaff::redo() { s1->unlink(s2); }
void UnlinkStaff::undo() { s1->linkTo(s2); }
void LinkStaff::redo() { s1->linkTo(s2); } // s1 is added
void LinkStaff::undo() { s2->unlink(s1); } // s1 is removed
void UnlinkStaff::redo() { s1->unlink(s2); } // s2 is removed
void UnlinkStaff::undo() { s2->linkTo(s1); } // s2 is added

//---------------------------------------------------------
// ChangeStartEndSpanner::flip
Expand Down

0 comments on commit 3bec846

Please sign in to comment.