Skip to content

Commit

Permalink
Merge pull request #6034 from Jojo-Schmitz/beam-spatiumChanged
Browse files Browse the repository at this point in the history
fix #304880: wrong beam positions when changing spatium
  • Loading branch information
anatoly-os authored Jun 20, 2020
2 parents 92164b1 + d0e5701 commit 10c954e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libmscore/beam.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2005,7 +2005,7 @@ void Beam::layout2(std::vector<ChordRest*>crl, SpannerSegmentType, int frag)

void Beam::spatiumChanged(qreal oldValue, qreal newValue)
{
int idx = (_direction == Direction::AUTO || _direction == Direction::DOWN) ? 0 : 1;
int idx = (!_up) ? 0 : 1;
if (_userModified[idx]) {
qreal diff = newValue / oldValue;
for (BeamFragment* f : fragments) {
Expand Down

0 comments on commit 10c954e

Please sign in to comment.