]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/stem.cc
Warnings: Move all warning-as-error handling to warn.cc
[lilypond.git] / lily / stem.cc
index 93ebea4c96cfaf75db438a1cbcd83b675a3f2dc9..c217d0de15b4a53d9ab40f4af38e8a4b24030e65 100644 (file)
@@ -849,7 +849,10 @@ Stem::offset_callback (SCM smob)
       Real r = real_attach;
 
       /* If not centered: correct for stem thickness.  */
-      if (attach)
+      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;
@@ -984,7 +987,7 @@ Stem::calc_stem_info (SCM smob)
 
   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