Skip to content

Commit

Permalink
Merge pull request #1642 from mgavioli/potential_crash_deleting_chord…
Browse files Browse the repository at this point in the history
…_with_lyrics

Potential crash when deleting chords with lyrics.
  • Loading branch information
wschweer committed Jan 19, 2015
2 parents 665043e + 21619aa commit 140a510
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libmscore/score.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1564,7 +1564,8 @@ void Score::removeElement(Element* element)
if (cr->beam())
cr->beam()->remove(cr);
for (Lyrics* lyr : cr->lyricsList())
lyr->removeFromScore();
if (lyr) // lyrics list may be sparse
lyr->removeFromScore();
// TODO: check for tuplet?
}
break;
Expand Down

0 comments on commit 140a510

Please sign in to comment.