]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.23
authorfred <fred>
Sun, 24 Mar 2002 19:27:48 +0000 (19:27 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:27:48 +0000 (19:27 +0000)
src/beam.cc

index 1016320deae1339c35785637aff3a4e3ebde1fc9..c65dc5811590aded016e27db29f35cfb6fe2a94e 100644 (file)
@@ -34,6 +34,7 @@ Stem_info::Stem_info(const Stem*s)
 }
 
 /****************/
+
 Offset
 Beam::center()const
 {
@@ -42,9 +43,9 @@ Beam::center()const
        Beam*me_p = (Beam*)this;
        me_p->do_post_processing();
     }
-    Real w=width().length()/2;
-    return Offset(w,
-                  (left_pos + w* slope)*paper()->interline());
+
+    Real w=(paper()->note_width() + width().length())/2.0;
+    return Offset(w, (left_pos + w* slope)*paper()->interline());
 }