Skip to content

Commit

Permalink
fix #294866: The direction of beamed notes does not immediately chang…
Browse files Browse the repository at this point in the history
…e when the beam is broken

Resolves: https://musescore.org/en/node/294866.

When a ChordRest is removed from its beam during layout, we need to relayout its old beam. This will cause a recalculation of the stem direction, in case it needs to change.
  • Loading branch information
mattmcclinch committed Sep 27, 2019
1 parent 3c2cb77 commit 282386d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libmscore/chordrest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,8 @@ void ChordRest::removeDeleteBeam(bool beamed)
_beam->remove(this);
if (b->empty())
score()->undoRemoveElement(b);
else
b->layout1();
}
if (!beamed && isChord())
toChord(this)->layoutStem();
Expand Down

0 comments on commit 282386d

Please sign in to comment.