X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fstaff-symbol-referencer.cc;h=dbff0245c609874af177b329914bafcc8d1056d5;hb=6a33b5cb60d40f9ae549deac8d0e6ebebf17af60;hp=2077a50082bc3e5f10c0c43995b5158bbe64914f;hpb=6fb6249345ce846c8c55f843b21c6e85024a720b;p=lilypond.git diff --git a/lily/staff-symbol-referencer.cc b/lily/staff-symbol-referencer.cc index 2077a50082..dbff0245c6 100644 --- a/lily/staff-symbol-referencer.cc +++ b/lily/staff-symbol-referencer.cc @@ -35,8 +35,7 @@ Staff_symbol_referencer::on_staff_line (Grob *me) bool Staff_symbol_referencer::on_line (Grob *me, int pos) { - int sz = line_count (me) - 1; - return ((pos + sz) % 2) == 0; + return Staff_symbol::on_line (me, pos); } bool @@ -109,8 +108,6 @@ Staff_symbol_referencer::extent_in_staff (Grob *me) return retval; } - - int Staff_symbol_referencer::get_rounded_position (Grob *me) { @@ -183,12 +180,11 @@ position_less (Grob *const &a, Grob *const &b) } ADD_INTERFACE (Staff_symbol_referencer, - "An object whose Y@tie{}position is meant relative to a staff " - "symbol. These usually " - "have @code{Staff_symbol_referencer::callback} in their " - "@code{Y-offset-callbacks}.", + "An object whose Y@tie{}position is meant relative to a staff" + " symbol. These usually" + " have @code{Staff_symbol_referencer::callback} in their" + " @code{Y-offset-callbacks}.", /* properties */ "staff-position " ); - \ No newline at end of file