]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/stem-tremolo.cc
Doc-es: fix repeated word.
[lilypond.git] / lily / stem-tremolo.cc
index a45ae1182abee4b71c609842cc2c362a1e3f35ee..d48091537aca3d55cc033389ef47dab9d126d43b 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1997--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 1997--2012 Han-Wen Nienhuys <hanwen@xs4all.nl>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -264,8 +264,11 @@ Stem_tremolo::y_offset (Grob *me, bool pure)
     }
 
   Real end_y
-    = stem->extent (stem, Y_AXIS)[stemdir]
-      - stemdir * max (beam_count, 1) * beam_translation;
+    = (pure
+       ? stem->pure_height (stem, 0, INT_MAX)[stemdir]
+       : stem->extent (stem, Y_AXIS)[stemdir])
+      - stemdir * max (beam_count, 1) * beam_translation
+      - Stem::beam_end_corrective (stem);
 
   if (!beam && Stem::duration_log (stem) >= 3)
     {