source file of the GNU LilyPond music typesetter
- (c) 1999--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ (c) 1999--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
*/
#include "staff-symbol-referencer.hh"
return st ? Staff_symbol::line_count (st) : 0;
}
-bool
-Staff_symbol_referencer::on_line (Grob *me)
-{
- return on_line (me, (int) rint (get_position (me)));
-}
-
-bool
-Staff_symbol_referencer::on_staff_line (Grob *me)
-{
- return on_staff_line (me, (int) rint (get_position (me)));
-}
-
bool
Staff_symbol_referencer::on_line (Grob *me, int pos)
{
- return Staff_symbol::on_line (me, pos);
+ Grob *st = get_staff_symbol (me);
+ return st ? Staff_symbol::on_line (st, pos) : false;
}
bool