]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/stem.cc
Compile fix
[lilypond.git] / lily / stem.cc
index f6bedcfd95461992e1e2498b34b055c8e1c0a0fb..c217d0de15b4a53d9ab40f4af38e8a4b24030e65 100644 (file)
@@ -849,11 +849,10 @@ Stem::offset_callback (SCM smob)
       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;