Skip to content

Commit

Permalink
fix #16047
Browse files Browse the repository at this point in the history
  • Loading branch information
wschweer committed May 21, 2013
1 parent aa8f987 commit f1d4613
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion libmscore/chordrest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1060,8 +1060,11 @@ void ChordRest::removeDeleteBeam()
if (_beam) {
Beam* b = _beam;
b->remove(this); // this sets _beam to zero
if (b->isEmpty())
if (b->isEmpty()) {
if (b->selected())
score()->deselect(b);
delete b;
}
Q_ASSERT(_beam == 0);
}
}
Expand Down

0 comments on commit f1d4613

Please sign in to comment.