]> git.donarmstrong.com Git - lilypond.git/commitdiff
fix overlap of trill-like line spanners and arrowheads
authorMaximilian Albert <Anhalter42@gmx.de>
Sun, 11 Feb 2007 17:45:29 +0000 (18:45 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 12 Feb 2007 23:35:07 +0000 (00:35 +0100)
lily/line-spanner.cc

index d764a3b717041b909c7f3564660d16913e64e018..a1fe664c16275205e973c1eeb82f1987456dccbe 100644 (file)
@@ -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],