Skip to content

Commit

Permalink
Fix GH#25429: Disable the display of the key signature when changing …
Browse files Browse the repository at this point in the history
…transposing instruments if score is in concert pitch

Backport of musescore#25601
  • Loading branch information
Jojo-Schmitz committed Nov 22, 2024
1 parent 20adb41 commit 318b622
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libmscore/keysig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ void KeySig::addLayout(SymId sym, qreal x, int line)

void KeySig::layout()
{
// We do not show keys if the key is for instrument change and we are in concert pitch mode
if (forInstrumentChange() && concertPitch())
return;

qreal _spatium = spatium();
setbbox(QRectF());

Expand All @@ -100,7 +104,6 @@ void KeySig::layout()
}
return;
}

_sig.keySymbols().clear();
if (staff() && !staff()->staffType(tick())->genKeysig())
return;
Expand Down

0 comments on commit 318b622

Please sign in to comment.