Skip to content

Commit

Permalink
Merge pull request #16770 from mike-spa/fixTransposeCrash
Browse files Browse the repository at this point in the history
Fix crash on transpose of specific 3.6 score
  • Loading branch information
RomanPudashkin committed Mar 14, 2023
2 parents 8f2a6e9 + 7128d13 commit 79c77b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engraving/libmscore/edit.cpp
Expand Up @@ -4697,7 +4697,7 @@ void Score::updateInstrumentChangeTranspositions(KeySigEvent& key, Staff* staff,
e.setKey(nkey);
}
KeySig* keySig = nullptr;
EngravingItem* keySigElem = s->element(track);
EngravingItem* keySigElem = s ? s->element(track) : nullptr;
if (keySigElem && keySigElem->isKeySig()) {
keySig = toKeySig(keySigElem);
}
Expand Down

0 comments on commit 79c77b6

Please sign in to comment.