- if (!unsmob_grob (elts_[i]->get_object ("axis-group-parent-Y")))
- {
- if (staffline_->get_parent (Y_AXIS)
- && staffline_->get_parent (Y_AXIS) == elts_[i])
- {
- staffline_->warning (_ ("Axis_group_engraver: vertical group already has a parent"));
- staffline_->warning (_ ("are there two Axis_group_engravers?"));
- staffline_->warning (_ ("removing this vertical group"));
- staffline_->suicide ();
- staffline_ = 0;
- break;
- }
-#if 0
- else if (elts_[i]->is_empty (Y_AXIS))
- {
- /*
- We have to do _something_, otherwise staff objects will
- end up with System as parent.
-
- */
- elts_[i]->set_parent (staffline_, Y_AXIS);
- }
- else
-#endif
- add_element (elts_[i]);
- }
+ if (!unsmob<Grob> (elts_[i]->get_object ("axis-group-parent-Y")))
+ {
+ if (staffline_->get_parent (Y_AXIS)
+ && staffline_->get_parent (Y_AXIS) == elts_[i])
+ {
+ staffline_->warning (_ ("Axis_group_engraver: vertical group already has a parent"));
+ staffline_->warning (_ ("are there two Axis_group_engravers?"));
+ staffline_->warning (_ ("removing this vertical group"));
+ staffline_->suicide ();
+ staffline_ = 0;
+ break;
+ }
+ add_element (elts_[i]);
+ }