- if (!staffline_)
- return;
-
- String type = context ()->context_name ();
- SCM dims = get_property ("verticalExtent");
-
- if (is_number_pair (dims))
- staffline_->set_extent (dims, Y_AXIS);
-
- dims = get_property ("minimumVerticalExtent");
- if (is_number_pair (dims))
- staffline_->set_property ("minimum-Y-extent", dims);
-
- dims = get_property ("extraVerticalExtent");
- if (is_number_pair (dims))
- staffline_->set_property ("extra-Y-extent", dims);
-
- Grob *it = unsmob_grob (get_property ("currentCommandColumn"));
-
- staffline_->set_bound (RIGHT, it);
+ if (staffline_)
+ {
+ Grob *it = unsmob<Grob> (get_property ("currentCommandColumn"));
+ staffline_->set_bound (RIGHT, it);