Merge pull request #5146 from mattmcclinch/291051-keysig-redo

fix #291051: Crash on redo after deleting a key signature
This commit is contained in:
Dmitri Ovodok 2019-06-27 11:18:15 +02:00 committed by GitHub
commit 9d7f4e460e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
}