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 f08e07c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/engraving/rendering/score/tlayout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3508,6 +3508,12 @@ 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()) {
LOGI() << "tpacebes procesando keySig forInstrumentChange()";
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 f08e07c

Please sign in to comment.