Skip to content

Commit

Permalink
Merge pull request #6045 from Howard-C/tremolo-fix
Browse files Browse the repository at this point in the history
[Regression] fix #305007: fix an error of single-note tremolo layout
  • Loading branch information
anatoly-os authored May 12, 2020
2 parents b26b1cf + e3623a6 commit 0982c4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libmscore/chord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1446,9 +1446,9 @@ qreal Chord::minAbsStemLength() const

qreal height;
if (up())
height = downPos() - _tremolo->pos().y();
height = upPos() - _tremolo->pos().y();
else
height = _tremolo->pos().y() + _tremolo->height() - upPos();
height = _tremolo->pos().y() + _tremolo->height() - downPos();
const bool hasHook = beamLvl && !beam();
if (hasHook)
beamLvl += (up() ? 4 : 2); // reserve more space for stem with both hook and tremolo
Expand Down

0 comments on commit 0982c4b

Please sign in to comment.