]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/note-head-line-engraver.cc
Added texidoc template.
[lilypond.git] / lily / note-head-line-engraver.cc
index fee6c1e63c9c6fb4a30217b0945140519fa85e90..b489af8b148fa9d18f15495646a96899b2451d1c 100644 (file)
@@ -60,9 +60,9 @@ Note_head_line_engraver::acknowledge_grob (Grob_info info)
       head_ = info.grob_;
       if (to_boolean (get_property ("followVoice")))
        {
-         Context * tr = daddy_context_;
+         Context * tr = context ();
          while (tr && !tr->is_alias (ly_symbol2scm ( "Staff")))
-           tr = tr->daddy_context_ ;
+           tr = tr->get_parent_context () ;
 
          if (tr
              && tr->is_alias (ly_symbol2scm ("Staff")) && tr != last_staff_)
@@ -87,12 +87,11 @@ Note_head_line_engraver::process_acknowledged_grobs ()
         Should probably store follow_ in line_, and suicide at some
         later point */
       if (follow_)
-       line_ = make_spanner ("VoiceFollower");
+       line_ = make_spanner ("VoiceFollower", head_->self_scm ());
          
       line_->set_bound (LEFT, last_head_);
       line_->set_bound (RIGHT, head_);
       
-      announce_grob (line_, head_->self_scm ());
 
       follow_ = false;
     }
@@ -101,11 +100,7 @@ Note_head_line_engraver::process_acknowledged_grobs ()
 void
 Note_head_line_engraver::stop_translation_timestep ()
 {
-  if (line_)
-    {
-      typeset_grob (line_);
-      line_ = 0;
-    }
+  line_ = 0;
   if (head_)
     last_head_ = head_;
   head_ = 0;