Skip to content

Commit

Permalink
correct keysig presence check
Browse files Browse the repository at this point in the history
  • Loading branch information
sammik committed Jun 29, 2023
1 parent ef8437f commit cb0ea38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engraving/libmscore/instrchange.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void InstrumentChange::setupInstrument(const Instrument* instrument)
Segment* seg = segment()->prev1(SegmentType::KeySig);
voice_idx_t voice = part->staff(i)->idx() * VOICES;
KeySig* ksig = toKeySig(seg->element(voice));
bool forInstChange = ksig && ksig->tick() != tickStart;
bool forInstChange = !(ksig && ksig->tick() == tickStart && !ksig->generated());
ks.setForInstrumentChange(forInstChange);
Key cKey = part->staff(i)->concertKey(tickStart);
ks.setConcertKey(cKey);
Expand Down

0 comments on commit cb0ea38

Please sign in to comment.