]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/horizontal-bracket.cc
* lily/horizontal-bracket.cc (print): Take care of the direction
[lilypond.git] / lily / horizontal-bracket.cc
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),