fix #32471: crash on setting drumset note to auto

This commit is contained in:
Marc Sabatella 2014-09-08 21:12:38 -06:00
parent b7c2b5e280
commit b17ff7c5e6

View file

@ -835,6 +835,13 @@ void Chord::computeUp()
if (_stemDirection != MScore::Direction::AUTO) {
_up = _stemDirection == MScore::Direction::UP;
}
else if (!parent()) {
// hack for palette and drumset editor
if (upNote()->line() > 4)
_up = true;
else
_up = false;
}
else if (_noteType != NoteType::NORMAL) {
//
// stem direction for grace notes