X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fstem-tremolo.cc;h=d48091537aca3d55cc033389ef47dab9d126d43b;hb=ac1f5ee6bc66e39e4fec27434ebb7c7300bab71e;hp=a45ae1182abee4b71c609842cc2c362a1e3f35ee;hpb=f875ef39c544bd3499dae5360e9e24f69933575f;p=lilypond.git diff --git a/lily/stem-tremolo.cc b/lily/stem-tremolo.cc index a45ae1182a..d48091537a 100644 --- a/lily/stem-tremolo.cc +++ b/lily/stem-tremolo.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1997--2011 Han-Wen Nienhuys + Copyright (C) 1997--2012 Han-Wen Nienhuys 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) {