]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/hyphen-spanner.cc
release: 1.2.15
[lilypond.git] / lily / hyphen-spanner.cc
index 990c24884b4cea53cd088063f1a5f98cf2884cb0..86c840e7ebf91f256bbf132bd6db6dfa4643c4f5 100644 (file)
@@ -71,7 +71,7 @@ void
 Hyphen_spanner::do_post_processing ()
 {
   // UGH
-  Real nw_f = paper_l ()->note_width () * 0.8;
+  Real gap = paper_l ()->get_realvar (interline_scm_sym);
 
   Direction d = LEFT;
   do
@@ -81,7 +81,7 @@ Hyphen_spanner::do_post_processing ()
       if (d == LEFT)
         dx_f_drul_[d] += t->extent (X_AXIS).length ();
       else
-       dx_f_drul_[d] -= d * nw_f / 2;
+       dx_f_drul_[d] -= d * gap / 2;
     }
   while (flip(&d) != LEFT);
 }