]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.3.125
authorfred <fred>
Wed, 27 Mar 2002 00:35:29 +0000 (00:35 +0000)
committerfred <fred>
Wed, 27 Mar 2002 00:35:29 +0000 (00:35 +0000)
lily/stem.cc

index 5824cc967ac4b17c76cd1e907660ffa096944cea..e640d0a7d0fc31642fd97cf54b56bee2ec8c97e4 100644 (file)
@@ -24,7 +24,7 @@
 #include "beam.hh"
 #include "rest.hh"
 #include "group-interface.hh"
-#include "cross-staff.hh"
+// #include "cross-staff.hh"
 #include "staff-symbol-referencer.hh"
 #include "spanner.hh"
 
@@ -639,7 +639,10 @@ Stem::calc_stem_info (Grob*me)
   if (gh_number_p (s))
     info.idealy_f_ -= gh_scm2double (s);
 
-  Real interstaff_f = -beam_dir* calc_interstaff_dist (dynamic_cast<Item*> (me), dynamic_cast<Spanner*> (beam));
+ Grob *common = me->common_refpoint (beam, Y_AXIS);
+  Real interstaff_f = beam_dir *
+    (me->relative_coordinate (common, Y_AXIS)
+     - beam->relative_coordinate (common, Y_AXIS));
 
   info.idealy_f_ += interstaff_f;
   info.miny_f_ += interstaff_f;