- Paper_column * news[] = {new_command_l, new_musical_l};
- Paper_column **current[] = {&command_column_l_, &musical_column_l_};
-
- for (int i=00; i< 2; i++)
- {
- if (*current[i])
- {
- if ((*current[i])->linked_b())
- {
- scoreline_l_->add_column ((*current[i]));
-
- }
- else
- {
- /*
- We're forgetting about this column. Dump it, and make SCM
- forget it.
-
- FIXME: we should have another way of not putting this
- column into the spacing problem. Maybe we shouldn't
- even prevent this.
-
- */
- scm_unprotect_object ((*current[i])->self_scm_);
- *current[i] =0;
- }
- }
- if (news[i])
- *current[i] = news[i];
- }
-}
-
-Staff_info
-Score_engraver::get_staff_info() const
-{
- Staff_info inf = Engraver_group_engraver::get_staff_info();
-
- inf.command_l_ = command_column_l_;
- inf.musical_l_ = musical_column_l_;
+ assert (!command_column_l_ && !musical_column_l_);
+ command_column_l_ = new_command_l;
+ musical_column_l_ = new_musical_l;