]> git.donarmstrong.com Git - lilypond.git/commitdiff
fix pure stem height for invisible stems.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 3 Jan 2007 15:09:05 +0000 (16:09 +0100)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Wed, 3 Jan 2007 15:09:05 +0000 (16:09 +0100)
lily/stem.cc

index 6757582869960d15ecd600493113f6af459a225c..89f656031855f1de44fb18caf559c1f2dc2d831d 100644 (file)
@@ -236,14 +236,17 @@ Stem::pure_height (SCM smob, SCM start, SCM end)
 {
   (void) start;
   (void) end;
-  
-  
+
   Grob *me = unsmob_grob (smob);
+  Interval iv;
+
+  if (!is_normal_stem (me))
+    return ly_interval2scm (iv);
+  
   Real ss = Staff_symbol_referencer::staff_space (me);
   Real len = scm_to_double (calc_length (smob)) * ss / 2;
   Direction dir = get_grob_direction (me);
 
-  Interval iv;
   Interval hp = head_positions (me);
   if (dir == UP)
     iv = Interval (0, len);