Skip to content

Commit

Permalink
Merge pull request #18653 from sammik/first-measure-insert-atonal
Browse files Browse the repository at this point in the history
fix #18611 - respect atonal key sig when inserting first measure
  • Loading branch information
RomanPudashkin committed Jul 19, 2023
2 parents 6e53a70 + a970afe commit 3059189
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/engraving/libmscore/edit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4145,7 +4145,9 @@ MeasureBase* Score::insertMeasure(ElementType type, MeasureBase* beforeMeasure,
KeySig* nks = Factory::copyKeySig(*ks);
Segment* s = newMeasure->undoGetSegmentR(SegmentType::KeySig, Fraction(0, 1));
nks->setParent(s);
nks->setKey(nks->concertKey()); // to set correct (transposing) key
if (!nks->isAtonal()) {
nks->setKey(nks->concertKey()); // to set correct (transposing) key
}
undoAddElement(nks);
}
for (Clef* clef : clefList) {
Expand Down

0 comments on commit 3059189

Please sign in to comment.