update for bug #16047: fix crash on undo

This commit is contained in:
ws 2013-05-22 14:28:05 +02:00
parent 9c5335482e
commit 159c004e91

View file

@ -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);
}
}