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_)
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;
}
void
Note_head_line_engraver::stop_translation_timestep ()
{
- if (line_)
- {
- typeset_grob (line_);
- line_ = 0;
- }
+ line_ = 0;
if (head_)
last_head_ = head_;
head_ = 0;