]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/stem-tremolo.cc
hideNotes should also hide rests...
[lilypond.git] / lily / stem-tremolo.cc
index a45ae1182abee4b71c609842cc2c362a1e3f35ee..c1508066783b1f26cb468aa4915f842a602c60de 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
@@ -265,7 +265,8 @@ Stem_tremolo::y_offset (Grob *me, bool pure)
 
   Real end_y
     = stem->extent (stem, Y_AXIS)[stemdir]
-      - stemdir * max (beam_count, 1) * beam_translation;
+      - stemdir * max (beam_count, 1) * beam_translation
+      - Stem::beam_end_corrective (stem);
 
   if (!beam && Stem::duration_log (stem) >= 3)
     {