update for bug #16047: fix crash on undo
This commit is contained in:
parent
9c5335482e
commit
159c004e91
1 changed files with 4 additions and 2 deletions
|
@ -1059,12 +1059,14 @@ void ChordRest::removeDeleteBeam()
|
|||
{
|
||||
if (_beam) {
|
||||
Beam* b = _beam;
|
||||
b->remove(this); // this sets _beam to zero
|
||||
if (b->isEmpty()) {
|
||||
b->score()->undoRemoveElement(b);
|
||||
// b->remove(this); // this sets _beam to zero
|
||||
/* if (b->isEmpty()) {
|
||||
if (b->selected())
|
||||
score()->deselect(b);
|
||||
delete b;
|
||||
}
|
||||
*/
|
||||
Q_ASSERT(_beam == 0);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue