Skip to content

Commit

Permalink
Merge pull request #5146 from mattmcclinch/291051-keysig-redo
Browse files Browse the repository at this point in the history
fix #291051: Crash on redo after deleting a key signature
  • Loading branch information
dmitrio95 committed Jun 27, 2019
2 parents f6a86cf + 1c8c51a commit 9d7f4e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3814,7 +3814,7 @@ void Measure::addSystemHeader(bool isFirstSystem)
// a transposing instrument using a different key sig.
// To prevent this from making the wrong key sig display, remove any key
// sigs on staves where the key in this measure is C.
score()->undo(new RemoveElement(e));
kSegment->remove(e);
}
}

Expand Down

0 comments on commit 9d7f4e4

Please sign in to comment.