X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fstaff-symbol-referencer.cc;h=d623bd35b35412f93893a5c7c24497181bf54714;hb=1ee79e6b8d4386a5885960a3eafb87db933d7f63;hp=53637c86e5f1bd8fadc39ece6ee3dec4fdbc0f87;hpb=87eedcd59f4082cb0841528ad5bc82cb1d1191e3;p=lilypond.git diff --git a/lily/staff-symbol-referencer.cc b/lily/staff-symbol-referencer.cc index 53637c86e5..d623bd35b3 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 @@ -183,12 +182,11 @@ position_less (Grob *const &a, Grob *const &b) } ADD_INTERFACE (Staff_symbol_referencer, - "An object whose Y 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"); - - + "staff-position " + );