Real r = real_attach;
/* If not centered: correct for stem thickness. */
- extract_grob_set (me, "note-heads", heads);
- SCM style = heads[0]->get_property ("style");
- if (attach && !scm_is_eq (style, ly_symbol2scm ("mensural"))
- && !scm_is_eq (style, ly_symbol2scm ("neomensural"))
- && !scm_is_eq (style, ly_symbol2scm ("petrucci")))
+ string style = robust_symbol2string (f->get_property ("style"), "default");
+ if (attach && style != "mensural"
+ && style != "neomensural"
+ && style != "petrucci")
{
Real rule_thick = thickness (me);
r += -d * rule_thick * 0.5;
Also, not for knees. Seems to be a good thing. */
bool no_extend = to_boolean (me->get_property ("no-stem-extend"));
- bool is_knee = to_boolean (beam->get_property ("knee"));
+ bool is_knee = Beam::is_knee (beam);
if (!no_extend && !is_knee)
{
/* Highest beam of (UP) beam must never be lower than middle