source file of the GNU LilyPond music typesetter
- (c) 1999--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1999--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
#include <math.h>
return 1.0;
}
+Real
+Staff_symbol_referencer::line_thickness (Grob*me)
+{
+ Grob * st = get_staff_symbol (me);
+ if (st)
+ return Staff_symbol::get_line_thickness (st);
+
+ return me->get_paper ()->get_realvar (ly_symbol2scm ("linethickness"));
+}
+
Real
Staff_symbol_referencer::get_position (Grob*me)
{
- st->relative_coordinate (c, Y_AXIS);
p += 2.0 * y / Staff_symbol::staff_space (st);
+ return p;
}
- else
- {
- SCM pos = me->get_grob_property ("staff-position");
- if (gh_number_p (pos))
- return gh_scm2double (pos);
- }
-
- return p;
+
+ return robust_scm2double ( me->get_grob_property ("staff-position"), p);
}