Skip to content

Commit

Permalink
Merge pull request #3911 from mattmcclinch/275369-keysig
Browse files Browse the repository at this point in the history
fix #275369: Key signatures are lost 2.X->3.0
  • Loading branch information
anatoly-os committed Sep 1, 2018
2 parents 9526b7b + af0a6c7 commit 7f19224
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libmscore/measure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4016,7 +4016,8 @@ void Measure::addSystemHeader(bool isFirstSystem)
bool disable = true;
for (int staffIdx = 0; staffIdx < score()->nstaves(); ++staffIdx) {
Element* e = kSegment->element(staffIdx * VOICES);
if (e && (!e->generated() || toKeySig(e)->key() != Key::C)) {
Key key = score()->staff(staffIdx)->key(tick());
if ((e && !e->generated()) || (key != keyIdx.key())) {
disable = false;
break;
}
Expand Down

0 comments on commit 7f19224

Please sign in to comment.