Skip to content

Commit

Permalink
fix #280208: hairpin should not normally cross barline to meet note
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcSabatella committed Dec 17, 2018
1 parent c63d1c4 commit 041a4af
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libmscore/hairpin.cpp
Expand Up @@ -112,9 +112,8 @@ void HairpinSegment::layout()
const qreal edLeft = ed->bbox().left() + ed->pos().x()
+ ed->segment()->pos().x() + ed->measure()->pos().x();
const qreal dist = edLeft - pos2().x() - pos().x() - score()->styleP(Sid::autoplaceHairpinDynamicsDistance);
rxpos2() += dist;
// TODO - don't extend hairpin across barline to reach dynamic in next measure?
// or only if there is also a key signature? see Gould
if (dist < 0.0 || dist >= 3.0 * spatium())
rxpos2() += dist;
}
}
}
Expand Down

0 comments on commit 041a4af

Please sign in to comment.