Skip to content

Commit

Permalink
Fix GH#15727: Crash on transpose of specific 3.6 score
Browse files Browse the repository at this point in the history
Backport of musescore#16770
  • Loading branch information
mike-spa authored and Jojo-Schmitz committed Mar 13, 2023
1 parent 88ceb86 commit 88fead5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3964,7 +3964,7 @@ void Score::updateInstrumentChangeTranspositions(KeySigEvent& key, Staff* staff,
nkey = transposeKey(nkey, previousTranspose);
e.setKey(nkey);
}
KeySig* keySig = toKeySig(s->element(track));
KeySig* keySig = s ? toKeySig(s->element(track)) : nullptr;
if (keySig)
undo(new ChangeKeySig(keySig, e, keySig->showCourtesy()));
nextTick = kl->nextKeyTick(nextTick);
Expand Down

0 comments on commit 88fead5

Please sign in to comment.