]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/stem-tremolo.cc
mass-link: handle filesystem crossing and support OS without link support
[lilypond.git] / lily / stem-tremolo.cc
index 9f21c466c3e5932764fc2bc29b67988fa5e9694b..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,7 +264,9 @@ Stem_tremolo::y_offset (Grob *me, bool pure)
     }
 
   Real end_y
-    = stem->extent (stem, Y_AXIS)[stemdir]
+    = (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);