]> git.donarmstrong.com Git - lilypond.git/commitdiff
bugfix: don't return flag for invisible stems.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 25 Mar 2007 17:59:07 +0000 (14:59 -0300)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sun, 25 Mar 2007 17:59:07 +0000 (14:59 -0300)
lily/stem.cc

index e83b8fbaaff8cba230dd94c34eb9d878b87b34e6..9ef07652e33bff3df8fc314e793fbed3a4e51c11 100644 (file)
@@ -275,8 +275,6 @@ Stem::calc_stem_end_position (SCM smob)
       return me->get_property ("stem-end-position");
     }
   
-  Real ss = Staff_symbol_referencer::staff_space (me);
-  int durlog = duration_log (me);
   vector<Real> a;
 
   /* WARNING: IN HALF SPACES */
@@ -571,6 +569,9 @@ Stem::flag (Grob *me)
       || unsmob_grob (me->get_object ("beam")))
     return Stencil ();
 
+  if (!is_normal_stem (me))
+    return Stencil ();
+  
   /*
     TODO: maybe property stroke-style should take different values,
     e.g. "" (i.e. no stroke), "single" and "double" (currently, it's