]> git.donarmstrong.com Git - lilypond.git/commitdiff
Set minimum size dots for text spanner to be round.
authorCarl Sorensen <carl.d.sorensen@gmail.com>
Mon, 16 May 2016 01:01:59 +0000 (19:01 -0600)
committerCarl Sorensen <carl.d.sorensen@gmail.com>
Sun, 12 Jun 2016 12:34:57 +0000 (06:34 -0600)
Previous code had them set up as rounded ovals with a length of twice the thickness.

lily/line-interface.cc

index b90be8c04ca17ec277a52564a0956a0963cdce1d..f23b58e3084be45de601b5b04f771cf2fb4b3aab 100644 (file)
@@ -123,8 +123,8 @@ Line_interface::make_dashed_line (Real thick, Offset from, Offset to,
                                   Real dash_period, Real dash_fraction)
 {
   dash_fraction = min (max (dash_fraction, 0.0), 1.0);
-  Real on = dash_fraction * dash_period + thick;
-  Real off = max (0.0, dash_period - on);
+  Real on = dash_fraction * dash_period
+  Real off = max (0.0, dash_period - on - thick);
 
   SCM at = scm_list_n (ly_symbol2scm ("dashed-line"),
                        scm_from_double (thick),