Skip to content

Commit

Permalink
fix #17940: setting distance between beam doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
lasconic committed Mar 22, 2013
1 parent 6e51fda commit 2a0c8de
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libmscore/beam.cpp
Expand Up @@ -1515,11 +1515,10 @@ void Beam::layout2(QList<ChordRest*>crl, SpannerSegmentType, int frag)
qreal beamMinLen = point(score()->styleS(ST_beamMinLen));
qreal graceMag = score()->styleD(ST_graceNoteMag);

// style values ST_beamDistance and ST_beamWidth not used
if (beamLevels == 4)
_beamDist = (2.5 / 3.0) * _spatium;
_beamDist = score()->styleP(ST_beamWidth) * (1 + score()->styleD(ST_beamDistance)*4/3);
else
_beamDist = 0.75 * _spatium;
_beamDist = score()->styleP(ST_beamWidth) * (1 + score()->styleD(ST_beamDistance));

if (isGrace) {
_beamDist *= graceMag;
Expand Down

0 comments on commit 2a0c8de

Please sign in to comment.