From f1b34989c310857f1c6d2710f3b0ffd0f9e405e8 Mon Sep 17 00:00:00 2001 From: Maximilian Albert Date: Sun, 11 Feb 2007 18:45:29 +0100 Subject: [PATCH] fix overlap of trill-like line spanners and arrowheads --- lily/line-spanner.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lily/line-spanner.cc b/lily/line-spanner.cc index d764a3b717..a1fe664c16 100644 --- a/lily/line-spanner.cc +++ b/lily/line-spanner.cc @@ -275,9 +275,10 @@ Line_spanner::print (SCM smob) } while (flip (&d) != LEFT); + Offset adjust = dz.direction() * Staff_symbol_referencer::staff_space (me); line.add_stencil (Line_interface::line (me, - span_points[LEFT], - span_points[RIGHT])); + span_points[LEFT] + (arrows[LEFT] ? adjust*1.4 : Offset(0,0)), + span_points[RIGHT] - (arrows[RIGHT] ? adjust*0.55 : Offset(0,0)))); line.add_stencil (Line_interface::arrows (me, span_points[LEFT], -- 2.39.2