]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/tie.cc
release: 1.1.18
[lilypond.git] / lily / tie.cc
index 002c5e969478b3a621020b89d283840d4b2e1709..1483196b2eb14c56f5294c7366f1d2a67f3c312b 100644 (file)
@@ -12,7 +12,7 @@
 #include "p-col.hh"
 #include "debug.hh"
 
-IMPLEMENT_IS_TYPE_B1(Tie,Bow);
+
 
 void
 Tie::set_head (Direction d, Note_head * head_l)
@@ -109,7 +109,7 @@ Tie::do_post_processing()
       // uhm? loose end of tie // tie attached to stem
       else
        {
-         dx_f_drul_[d] = -d * (spanned_drul_[d]->width ().length () 
+         dx_f_drul_[d] = -d * (spanned_drul_[d]->extent (X_AXIS).length () 
                                -0.5 * notewidth);
        }
     }
@@ -140,7 +140,7 @@ Tie::do_post_processing()
   Real damp_f = paper ()->get_var ("tie_slope_damping");
   Offset d_off = Offset (dx_f_drul_[RIGHT] - dx_f_drul_[LEFT],
     dy_f_drul_[RIGHT] - dy_f_drul_[LEFT]);
-  d_off.x () += width ().length ();
+  d_off.x () += extent (X_AXIS).length ();
 
   Real ratio_f = abs (d_off.y () / d_off.x ());
   if (ratio_f > damp_f)
@@ -151,7 +151,7 @@ Tie::do_post_processing()
 void
 Tie::do_substitute_dependency (Score_element*o, Score_element*n)
 {
-  Note_head *new_l =n?(Note_head*)dynamic_cast <Item *> (n):0;
+  Note_head *new_l =n?dynamic_cast<Note_head *> (n):0;
   if (dynamic_cast <Item *> (o) == head_l_drul_[LEFT])
     head_l_drul_[LEFT] = new_l;
   else if (dynamic_cast <Item *> (o) == head_l_drul_[RIGHT])