Merge pull request #1895 from MarcSabatella/delete-crash
fix crash regression in delete list selection
This commit is contained in:
commit
b4b5e28063
1 changed files with 3 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue