From 1363ae1c00c69a235cd1383b6e00ee1c2b90a711 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Sat, 1 Oct 2005 22:57:16 +0000 Subject: [PATCH] (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. --- ChangeLog | 3 +++ lily/tuplet-bracket.cc | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) 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); -- 2.39.5