Skip to content

Commit

Permalink
fix #22535: Stem direction of drum note doesn't reflect Edit Drumset …
Browse files Browse the repository at this point in the history
…setting
  • Loading branch information
lasconic committed Sep 5, 2013
1 parent 65cf846 commit a2b136c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions libmscore/beam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,22 @@ void Beam::layout1()
}
}
}
else if (staff()->isDrumStaff()) {
if (_direction != MScore::AUTO) {
_up = _direction == MScore::UP;
}
else {
foreach (ChordRest* cr, _elements) {
if (cr->type() == CHORD) {
c2 = static_cast<Chord*>(cr);
_up = c2->up();
break;
}
}
}
foreach(ChordRest* cr, _elements)
cr->setUp(_up);
}
else {
//PITCHED STAVES (and TAB's with stems through staves)
minMove = 1000;
Expand Down

2 comments on commit a2b136c

@wiktor3337
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How do I fix the bug?

@MarcSabatella
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This bug was fixed over four years ago. If you are developer looking for bugs to fix, start with the Issue tracker. If you are a user looking for help using MuseScore, please use the Support forum. Both resources are found on MuseScore.org

Please sign in to comment.