Skip to content

Commit

Permalink
fix #100656: C key signature not transposed on change instrument
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Mar 3, 2016
1 parent a6ec8aa commit e7f730c
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 e7f730c

Please sign in to comment.