Skip to content

Commit

Permalink
fix #291342: fix a crash on playing an empty score
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrio95 authored and anatoly-os committed Jun 26, 2019
1 parent 2e8543f commit a65a3c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libmscore/repeatlist.cpp
Expand Up @@ -244,6 +244,8 @@ int RepeatList::utick2tick(int tick) const

int RepeatList::tick2utick(int tick) const
{
if (empty())
return 0;
for (const RepeatSegment* s : *this) {
if (tick >= s->tick && tick < (s->tick + s->len() ))
return s->utick + (tick - s->tick);
Expand Down

0 comments on commit a65a3c3

Please sign in to comment.