- if (p->finished_line_spanner_
- && p->finished_line_spanner_->immutable_property_alist_ == SCM_EOL)
- p->finished_line_spanner_ = 0;
- if (p->finished_bracket_p_
- && p->finished_bracket_p_->immutable_property_alist_ == SCM_EOL)
- p->finished_bracket_p_ = 0;
- if (p->name_ == String ("Sustain"))
- sustain = p->item_p_;
-
- if (p->item_p_)
- {
- /*
- Hmm.
- */
- if (p->name_ != String ("Sustain"))
- {
- if (sustain)
- {
- Side_position_interface::add_support (p->item_p_,sustain);
- }
- }
- typeset_grob (p->item_p_);
- p->item_p_ = 0;
- }
-
- if (p->finished_bracket_p_)
- {
- if (!p->finished_bracket_p_->get_bound (RIGHT))
- {
- p->finished_bracket_p_->set_bound (RIGHT, unsmob_grob (get_property ("currentMusicalColumn")));
-
- if (p->finished_line_spanner_)
- add_bound_item (p->finished_line_spanner_,
- p->finished_bracket_p_->get_bound (RIGHT));
- }
- typeset_grob (p->finished_bracket_p_);
- p->finished_bracket_p_ =0;
- }
-
- if (p->finished_line_spanner_)
- {
- Side_position_interface::add_staff_support (p->finished_line_spanner_);
- Grob * l = p->finished_line_spanner_->get_bound (LEFT );
- Grob * r = p->finished_line_spanner_->get_bound (RIGHT);
- if (!r && l)
- p->finished_line_spanner_->set_bound (RIGHT, l);
- else if (!l && r)
- p->finished_line_spanner_->set_bound (LEFT, r);
- else if (!r && !l)
- {
- Grob * cc = unsmob_grob (get_property ("currentMusicalColumn"));
- Item * ci = dynamic_cast<Item*>(cc);
- p->finished_line_spanner_->set_bound (RIGHT, ci);
- p->finished_line_spanner_->set_bound (LEFT, ci);
- }
- typeset_grob (p->finished_line_spanner_);
- p->finished_line_spanner_ = 0;
- }