X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fstaff-spacing.cc;h=6a509d391e2961d1f452588f1bc1c35eef1dee69;hb=60b8773f7ab4f8042bb219d1c6d8c5a9a4814afe;hp=7c4ece46433c5f6be6477a52bc0d3d492d331f3f;hpb=a066a93ee74edebb9d238a1bac93c3bc7e8e6e4a;p=lilypond.git diff --git a/lily/staff-spacing.cc b/lily/staff-spacing.cc index 7c4ece4643..6a509d391e 100644 --- a/lily/staff-spacing.cc +++ b/lily/staff-spacing.cc @@ -56,17 +56,7 @@ Staff_spacing::optical_correction (Grob *me, Grob *g, Interval bar_height) Direction d = get_grob_direction (stem); if (Stem::is_normal_stem (stem) && d == DOWN) { - - /* - can't look at stem-end-position, since that triggers - beam slope computations. - */ - Real stem_start = Stem::head_positions (stem) [d]; - Real stem_end = stem_start - + d * robust_scm2double (stem->get_property ("length"), 7); - - Interval stem_posns (min (stem_start, stem_end), - max (stem_end, stem_start)); + Interval stem_posns = stem->pure_height (stem, 0, INT_MAX); stem_posns.intersect (bar_height);