]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/slur.cc
release: 1.3.37
[lilypond.git] / lily / slur.cc
index b5ce992237ae0ea3ac85db8fa3b88ae13fa73043..7a0f91f9413b840e644c17ca36cb135f82ae5b5b 100644 (file)
@@ -320,12 +320,12 @@ Slur::encompass_offset (Note_column const* col) const
   if (!stem_l)
     {
       warning (_ ("Slur over rest?"));
-     o[X_AXIS] = col->hpos_f ();
+     o[X_AXIS] = col->relative_coordinate (0, X_AXIS);
       o[Y_AXIS] = col->extent (Y_AXIS)[dir];
       return o;  
     }
   Direction stem_dir = directional_element (stem_l).get ();
-  o[X_AXIS] = stem_l->hpos_f ();
+  o[X_AXIS] = stem_l->relative_coordinate (0, X_AXIS);
 
   /*
     Simply set x to middle of notehead
@@ -444,7 +444,7 @@ Slur::set_extremities ()
          */
          else
            {
-             dx_f_drul_[d] = stem_l->hpos_f ()
+             dx_f_drul_[d] = stem_l->relative_coordinate (0, X_AXIS)
                - get_bound (d)->relative_coordinate (0, X_AXIS);
              /*
                side attached to beamed stem