Merge pull request #1895 from MarcSabatella/delete-crash

fix crash regression in delete list selection
This commit is contained in:
Nicolas Froment 2015-03-17 17:26:27 +01:00
commit b4b5e28063

View file

@ -2006,7 +2006,9 @@ void Score::cmdDeleteSelection()
for (Element* e : el) {
// these are the linked elements we are about to delete
LinkedElements links = *e->links();
QList<ScoreElement*> links;
if (e->links())
links = *e->links();
// delete element if we have not done so already
if (!deletedElements.contains(e))