Skip to content

Commit

Permalink
Merge pull request #3281 from Emmanuel-Vallois/master
Browse files Browse the repository at this point in the history
Fix a crash in Timeline::numToStaff(int)
  • Loading branch information
lasconic committed Aug 19, 2017
2 parents d046ea9 + 562c896 commit ef25e60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mscore/timeline.cpp
Expand Up @@ -2620,7 +2620,7 @@ Staff* Timeline::numToStaff(int staff)
if (!_score)
return 0;
QList<Staff*> staves = _score->staves();
if (staves.size() >= staff && staff >= 0)
if (staves.size() > staff && staff >= 0)
return staves.at(staff);
else
return 0;
Expand Down

0 comments on commit ef25e60

Please sign in to comment.