X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Frest.cc;h=8e45405de278dbd4ea5040dfc3259c6a2164a112;hb=c068e70716173817d32fa062d717a2dce896e731;hp=9057e45af1bd90deaf29c0419ac2a2b2233ee8a9;hpb=2f0c6eb19208485a86d3416db3f3640a1d54752a;p=lilypond.git diff --git a/lily/rest.cc b/lily/rest.cc index 9057e45af1..8e45405de2 100644 --- a/lily/rest.cc +++ b/lily/rest.cc @@ -37,7 +37,6 @@ Rest::y_offset_callback (SCM smob) { Grob *me = unsmob_grob (smob); int duration_log = scm_to_int (me->get_property ("duration-log")); - int line_count = Staff_symbol_referencer::line_count (me); Real ss = Staff_symbol_referencer::staff_space (me); bool position_override = scm_is_number (me->get_property ("staff-position")); @@ -69,7 +68,7 @@ Rest::y_offset_callback (SCM smob) make a semibreve rest hang from the next line, except for a single line staff */ - if (duration_log == 0 && line_count > 1) + if (duration_log == 0 && Staff_symbol_referencer::line_count (me) > 1) pos += 2; /*