]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/enclosing-bracket.cc
Make pure-height on accidentals ignore tied accidentals after breaks.
[lilypond.git] / lily / enclosing-bracket.cc
index 81a292a2ecbefb208cf0f80d0fbdde609de94964..e647fcae868f01465c466c5f594dea77cdd922d1 100644 (file)
@@ -15,7 +15,7 @@
 
 struct Enclosing_bracket
 {
-  static bool has_interface (Grob*);
+  DECLARE_GROB_INTERFACE();
   
 public:
   DECLARE_SCHEME_CALLBACK(print, (SCM));
@@ -24,7 +24,6 @@ public:
 
 
 ADD_INTERFACE(Enclosing_bracket,
-             "enclosing-bracket-interface",
              
              "Brackets alongside bass figures.",
              
@@ -86,7 +85,11 @@ Enclosing_bracket::print (SCM grob)
 
   Grob *common_x = common_refpoint_of_array (elements, me, X_AXIS); 
   Interval xext = Axis_group_interface::relative_group_extent (elements, common_x, X_AXIS);
-
+  if (xext.is_empty ())
+    {
+      me->programming_error ("elements have no X extent.");
+      xext = Interval (0, 0);
+    }
 
   Stencil left_br = Horizontal_bracket::make_enclosing_bracket (me, me, elements,
                                                                Y_AXIS, LEFT);