]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/horizontal-bracket.cc (print): Take care of the direction
authorMats Bengtsson <mats.bengtsson@s3.kth.se>
Mon, 16 May 2005 11:46:54 +0000 (11:46 +0000)
committerMats Bengtsson <mats.bengtsson@s3.kth.se>
Mon, 16 May 2005 11:46:54 +0000 (11:46 +0000)
property so brackets above the stave point downwards.

* scm/define-grobs.scm (all-grob-descriptions): Set staff-padding
for HorizontalBracket so it doesn't end up within the stave.

ChangeLog
lily/horizontal-bracket.cc
scm/define-grobs.scm

index f506874bb629a9f015380df60d6a4993d370f58f..b1eeae499539b03b316b8d11585336230b5dd847 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2005-05-16  Mats Bengtsson  <mabe@drongo.s3.kth.se>
+
+       * lily/horizontal-bracket.cc (print): Take care of the direction
+       property so brackets above the stave point downwards. 
+
+       * scm/define-grobs.scm (all-grob-descriptions): Set staff-padding
+       for HorizontalBracket so it doesn't end up within the stave.
+
 2005-05-16  Jan Nieuwenhuizen  <janneke@gnu.org>
 
        * lily/GNUmakefile (default): Typo.
index 654a1e0015857a41cf59f4213867518ac2f19252..c4b598761ab52078d853e53d9ad1842078111df7 100644 (file)
@@ -57,6 +57,10 @@ Horizontal_bracket::print (SCM smob)
   Drul_array<Real> shorten = robust_scm2interval (me->get_property ("shorten-pair"),
                                                  Interval (0, 0));
 
+  // Make sure that it points in the correct direction:
+  Real dir = get_grob_direction (me);
+  scale_drul (&edge_height, -dir);
+
   Interval empty;
   Stencil b
     = Tuplet_bracket::make_bracket (me, Y_AXIS, Offset (ext.length (), 0),
index 04818dcd1552884ee8606c279803592aacfd8f9a..2ba4eabd7f293369f92ca45c6e864709387eb2d7 100644 (file)
        (print-function . ,Horizontal_bracket::print)
        (Y-offset-callbacks . (,Side_position_interface::aligned_side))
        (padding . 0.2)
+       (staff-padding . 0.2)
        (direction . -1)
        (bracket-flare . (0.5 . 0.5))
        (meta . ((interfaces . (horizontal-bracket-interface