Skip to content

Commit

Permalink
fix crash when deleting staff with lyrics
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed Jan 24, 2015
1 parent b98f097 commit 8c2401f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions libmscore/chordrest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,10 @@ void ChordRest::undoUnlink()
DurationElement::undoUnlink();
for (Articulation* a : _articulations)
a->undoUnlink();
for (Lyrics* l : _lyricsList)
l->undoUnlink();
for (Lyrics* l : _lyricsList) {
if (l)
l->undoUnlink();
}
}

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

0 comments on commit 8c2401f

Please sign in to comment.