-
- if (!st)
- return gh_int2scm (0);
-
- Real padding=
- Staff_symbol_referencer::staff_space (me)
- * robust_scm2double (me->get_grob_property ("staff-padding"), 0);
-
- Grob *common = me->common_refpoint (st, Y_AXIS);
- Direction d = Side_position_interface::get_direction (me);
- Interval staff_size = st->extent (common, Y_AXIS);
- Interval me_ext = me->extent (common, a);
- Real diff = d*staff_size[d] + padding - d*me_ext[-d];
- return gh_double2scm (d* (diff >? 0));
-}
-
-void
-Side_position_interface::add_staff_support (Grob*me)
-{
- Grob* st = Staff_symbol_referencer::get_staff_symbol (me);
- if (st && get_axis (me) == Y_AXIS)