Skip to content

Commit

Permalink
fix deletion of loop event
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Aug 20, 2013
1 parent 9219ebd commit fe87c1b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions mscore/seq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,9 +290,12 @@ void Seq::loopStop()
//
// Finds the Loop event and removes it.
//
for (auto it = events.cbegin(); it != events.cend(); ++it)
for (auto it = events.begin(); it != events.end(); ) {
if ((*it).second.type() == ME_LOOP)
events.erase(it);
it = events.erase(it);
else
++it;
}
}

//---------------------------------------------------------
Expand Down

0 comments on commit fe87c1b

Please sign in to comment.