From: hanwen Date: Sat, 1 Oct 2005 22:57:16 +0000 (+0000) Subject: (after_line_breaking): suicide empty X-Git-Tag: release/2.7.16^2~131 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=607d67870bce91bd81a3e67b3abb1d543a18c59f;p=lilypond.git (after_line_breaking): suicide empty tuplet bracket. (print): only connect to next bracket if the next one is alive. (print): set padding to 0.0 if the bound is a breakable column. This makes tupletFullLength brackets reach up to the staff line if it doesn't connect to the next line. --- diff --git a/ChangeLog b/ChangeLog index 8176f8fbb2..1a8bc81448 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,9 @@ * lily/tuplet-bracket.cc (after_line_breaking): suicide empty tuplet bracket. (print): only connect to next bracket if the next one is alive. + (print): set padding to 0.0 if the bound is a breakable + column. This makes tupletFullLength brackets reach up to the staff + line if it doesn't connect to the next line. 2005-09-30 Han-Wen Nienhuys diff --git a/lily/tuplet-bracket.cc b/lily/tuplet-bracket.cc index 94a3c05c78..983f98f937 100644 --- a/lily/tuplet-bracket.cc +++ b/lily/tuplet-bracket.cc @@ -209,7 +209,12 @@ Tuplet_bracket::print (SCM smob) /* TODO: make padding tunable? */ - x_span[d] = robust_relative_extent (bounds[d], commonx, X_AXIS) [LEFT] - 1.0; + Real padding = 1.0; + + if (bounds[d]->break_status_dir ()) + padding = 0.0; + + x_span[d] = robust_relative_extent (bounds[d], commonx, X_AXIS) [LEFT] - padding; } } while (flip (&d) != LEFT);