- sep_span_p_->set_bound (RIGHT, unsmob_element (get_property ("currentCommandColumn")));
- typeset_grob (sep_span_p_);
- sep_span_p_ =0;
+ if (!sep_span_)
+ return ;
+
+ SCM ccol = get_property ("currentCommandColumn");
+ Grob *column = unsmob_grob (ccol);
+
+ sep_span_->set_bound (RIGHT, unsmob_grob (ccol));
+ sep_span_ = 0;
+
+ for (int i = 0 ; i < last_spacings_.note_spacings_.size (); i++)
+ {
+ Pointer_group_interface::add_grob (last_spacings_.note_spacings_[i],
+ ly_symbol2scm ("right-items" ),
+ column);
+ }
+
+ if (last_spacings_.staff_spacing_
+ && last_spacings_.staff_spacing_->get_column () == column)
+ {
+ last_spacings_.staff_spacing_->suicide ();
+ }