]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/volta-spanner.cc
release: 1.3.93
[lilypond.git] / lily / volta-spanner.cc
index e244e6ad7ca7f9259b99715e37591d32760f4588..34a4016c28ea8cba5bd1d379f3ed5f859b64f059 100644 (file)
@@ -63,10 +63,15 @@ Volta_spanner::brew_molecule (SCM smob)
     no_vertical_end = false;
 #endif
 
-  Real staff_space = me->paper_l ()->get_var ("interline");
+  Real staff_space = me->paper_l ()->get_var ("staffspace");
   Real staff_thick = me->paper_l ()->get_var ("stafflinethickness");  
   Real half_space = staff_space / 2;
-  Real left = dynamic_cast<Spanner*>(me)->get_broken_left_end_align ();
+
+  /*
+    the volta spanner is attached to the bar-line, which is moved
+    to the right. We don't need to compensate for the left edge.
+   */
+  Real left = 0.0;
   Real w = dynamic_cast<Spanner*>(me)->spanner_length () - left - half_space;
   Real h = staff_space * gh_scm2double (me->get_elt_property ("height"));
   Real t = staff_thick * gh_scm2double (me->get_elt_property ("thickness"));