Skip to content

Commit

Permalink
Fix #304292 - Invisible beams influence lyrics distance from staff
Browse files Browse the repository at this point in the history
Disables the beam the the measure is stemless.
  • Loading branch information
njvdberg committed May 6, 2020
1 parent 5eaa04f commit 4fb10e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libmscore/chordrest.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#include "duration.h"
#include "beam.h"
#include "shape.h"
#include "measure.h"

namespace Ms {

Expand Down Expand Up @@ -89,7 +90,7 @@ class ChordRest : public DurationElement {
Beam::Mode beamMode() const { return _beamMode; }

void setBeam(Beam* b);
virtual Beam* beam() const final { return _beam; }
virtual Beam* beam() const final { return !(measure() && measure()->stemless(staffIdx())) ? _beam : nullptr; }
int beams() const { return _durationType.hooks(); }
virtual qreal upPos() const = 0;
virtual qreal downPos() const = 0;
Expand Down

0 comments on commit 4fb10e4

Please sign in to comment.