musescore/MuseScore — pull request #336 by mgavioli (2013-05-07 11:00:25+00:00)
Title: Fix #21000 - Deleting the last annotation of a segment causes crash

Fix #21000 - Deleting the last annotation of a segment causes crash

In Segment::removeAnnotation(), deleting the last annotation fools the "i != _annotations.end()" look test.
Fixed by adding a break after the deletion.