]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/ottava-bracket.cc
Run `make grand-replace'.
[lilypond.git] / lily / ottava-bracket.cc
index 2f23261eb901cbe682d673aec3b1f66159d8bdef..70757d91588da33b3aee287883e8e2e26756c9a4 100644 (file)
@@ -3,7 +3,7 @@
 
   source file of the GNU LilyPond music typesetter
 
-  (c) 2004--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  (c) 2004--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
 */
 
 #include "text-interface.hh"
@@ -132,10 +132,13 @@ Ottava_bracket::print (SCM smob)
   Drul_array<Real> flare = robust_scm2interval (me->get_property ("bracket-flare"),
                                                Interval (0, 0));
 
-  edge_height[LEFT] = 0.0;
-  edge_height[RIGHT] *= -get_grob_direction (me);
-  if (broken[RIGHT])
-    edge_height[RIGHT] = 0.0;
+  do
+    {
+      edge_height[d] *= -get_grob_direction (me);
+      if (broken[d])
+       edge_height[d] = 0.0;
+    }
+  while (flip(&d) != LEFT);
 
   Stencil b;
   Interval empty;
@@ -176,13 +179,12 @@ Ottava_bracket::print (SCM smob)
 }
 
 ADD_INTERFACE (Ottava_bracket,
-              "An ottava bracket",
+              "An ottava bracket.",
 
-              /*
-                properties
-               */
+              /* properties */
               "edge-height "
               "bracket-flare "
               "shorten-pair "
-              "minimum-length");
+              "minimum-length "
+              );