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
pacebes authored and Jojo-Schmitz committed Jan 14, 2025
1 parent 9e47957 commit dc8c667
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 dc8c667

Please sign in to comment.