diff options
author | Carl Sorensen <carl.d.sorensen@gmail.com> | 2016-05-15 19:01:59 -0600 |
---|---|---|
committer | Carl Sorensen <carl.d.sorensen@gmail.com> | 2016-06-12 06:34:57 -0600 |
commit | fa512e34722a81101213ac1566175aba4da805dd (patch) | |
tree | 516e13ea667dc981c7eafcaee4e15eb420de91d7 | |
parent | 9e6c934b15e0bbcc2f2f250d5a5b6e17ea88a22d (diff) |
Set minimum size dots for text spanner to be round.
Previous code had them set up as rounded ovals with a length of twice the thickness.
-rw-r--r-- | lily/line-interface.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lily/line-interface.cc b/lily/line-interface.cc index b90be8c04c..f23b58e308 100644 --- a/lily/line-interface.cc +++ b/lily/line-interface.cc @@ -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), |