X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fcustos.cc;h=9a41fb20c6c7a2e981f8aac5e97eb512cd4bd90b;hb=f4ff2e488239d66830ac8b3ae5771358a917b58f;hp=db442a3dee226963ca02dbc913208085d202c8cc;hpb=00d31c0186ec27e8a05417485639cae43aa8e82d;p=lilypond.git diff --git a/lily/custos.cc b/lily/custos.cc index db442a3dee..9a41fb20c6 100644 --- a/lily/custos.cc +++ b/lily/custos.cc @@ -34,7 +34,7 @@ Custos::print (SCM smob) SCM scm_style = me->get_property ("style"); String style; - if (gh_symbol_p (scm_style)) + if (scm_is_symbol (scm_style)) { style = ly_symbol2string (scm_style); } @@ -85,20 +85,8 @@ Custos::print (SCM smob) me->warning (_f ("custos `%s' not found", font_char)); return SCM_EOL; } - else - { - // add ledger lines - int pos = Staff_symbol_referencer::get_rounded_position (me); - int interspaces = Staff_symbol_referencer::line_count (me)-1; - if (abs (pos) - interspaces > 1) - { - Stencil ledger_lines = - Note_head::brew_ledger_lines (me, pos, interspaces, - stencil.extent (X_AXIS), 0, true); - stencil.add_stencil (ledger_lines); - } - return stencil.smobbed_copy (); - } + + return stencil.smobbed_copy (); } ADD_INTERFACE (Custos, "custos-interface",