]> git.donarmstrong.com Git - lilypond.git/commitdiff
(after_line_breaking): suicide empty
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 1 Oct 2005 22:57:16 +0000 (22:57 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Sat, 1 Oct 2005 22:57:16 +0000 (22:57 +0000)
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
lily/tuplet-bracket.cc

index 8176f8fbb213f2de212e6cda8c3c603b8e0f8a90..1a8bc8144879771b957d5124acef017a84df961e 100644 (file)
--- 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  <hanwen@xs4all.nl>
 
index 94a3c05c78a6c462410b9087ef4ae5730e8a7999..983f98f937ea975c6d9f42fc466de16de2b04c2e 100644 (file)
@@ -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);