fix #18463: Wrong key signature inserted for transposing instrument
This commit is contained in:
parent
2eeb3de920
commit
d4510b8062
1 changed files with 5 additions and 0 deletions
|
@ -444,6 +444,11 @@ void Score::undoChangeKeySig(Staff* ostaff, int tick, KeySigEvent st)
|
|||
|
||||
KeySig* nks = new KeySig(score);
|
||||
nks->setTrack(track);
|
||||
|
||||
int diff = -staff->part()->instr()->transpose().chromatic;
|
||||
if (diff != 0 && !score->styleB(ST_concertPitch))
|
||||
st.setAccidentalType(transposeKey(st.accidentalType(), diff));
|
||||
|
||||
nks->changeKeySigEvent(st);
|
||||
nks->setParent(s);
|
||||
if (links == 0)
|
||||
|
|
Loading…
Reference in a new issue