]> git.donarmstrong.com Git - lilypond.git/commitdiff
Issue 4468/2: Avoid skyline interruptions at line caps
authorDavid Kastrup <dak@gnu.org>
Tue, 30 Jun 2015 09:44:50 +0000 (11:44 +0200)
committerDavid Kastrup <dak@gnu.org>
Sun, 5 Jul 2015 08:32:29 +0000 (10:32 +0200)
Line caps are made to slightly overhang into their corresponding line in
order to avoid numerics causing a gap.  Such a gap is unlikely to be
relevant for positioning but is ungainly when using -ddebug-skylines.

lily/stencil-integral.cc

index f5e437bced8df0f408905d0b0f548cbdc2f84f20..c3726b858c01c3eb2dcc48cea5632297a2d7e0af 100644 (file)
@@ -372,8 +372,8 @@ create_path_cap (vector<Box> &boxes,
   make_partial_ellipse_boxes (boxes, buildings, new_trans,
                               scm_list_n (scm_from_double (rad),
                                           scm_from_double (rad),
-                                          scm_from_double (angle-90),
-                                          scm_from_double (angle+90),
+                                          scm_from_double (angle-90.01),
+                                          scm_from_double (angle+90.01),
                                           scm_from_double (0.0),
                                           SCM_BOOL_F,
                                           SCM_BOOL_F,