Skip to content

Commit

Permalink
Merge pull request #2422 from MarcSabatella/100656-change-instrument-c
Browse files Browse the repository at this point in the history
fix #100656: C key signature not transposed on change instrument
  • Loading branch information
lasconic committed Mar 9, 2016
2 parents 6af7c4d + e7f730c commit d111124
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/transpose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ void Score::transposeKeys(int staffStart, int staffEnd, int tickStart, int tickE
if (st->staffType()->group() == StaffGroup::PERCUSSION)
continue;

bool createKey = tickStart == 0;
bool createKey = tickStart <= 0; // 0 and -1 are both valid values to indicate start of score
for (Segment* s = firstSegment(Segment::Type::KeySig); s; s = s->next1(Segment::Type::KeySig)) {
if (s->tick() < tickStart)
continue;
Expand Down

0 comments on commit d111124

Please sign in to comment.