Skip to content

Commit

Permalink
Fix musescore#25429: Disable the display of the key signature when ch…
Browse files Browse the repository at this point in the history
…anging transposing instruments if score is in concert pitch
  • Loading branch information
pacebes committed Nov 21, 2024
1 parent 713085e commit d893a62
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/engraving/rendering/score/tlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3508,6 +3508,11 @@ void TLayout::layoutKeySig(const KeySig* item, KeySig::LayoutData* ldata, const
// return;
// }

// We do not show keys if the key is for instrument change and we are in concert pitch mode
if (item->forInstrumentChange() and item->concertPitch()) {
return;
}

double spatium = item->spatium();
double step = spatium * (item->staff() ? item->staff()->staffTypeForElement(item)->lineDistance().val() * 0.5 : 0.5);

Expand Down

0 comments on commit d893a62

Please sign in to comment.