]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.36
authorfred <fred>
Sun, 24 Mar 2002 19:56:41 +0000 (19:56 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:56:41 +0000 (19:56 +0000)
lily/axis-group-administration.cc

index 5537d742a86fce1b47926b8190d878e411d71b8a..11eb1263b7675ff289e52983da141f9f4586c747 100644 (file)
@@ -7,6 +7,7 @@
 */
 #include "interval.hh"
 #include "axis-group-administration.hh"
+#include "axis-group-element.hh"
 #include "graphical-element.hh"
 #include "debug.hh"
 
@@ -35,6 +36,8 @@ void
 Axis_group_administration::add_element (Graphical_element*e,
                                        Axis_group_element*g, Axis a1, Axis a2)
 {
+  // don't add self to self.
+  assert (e != g);
   Axis_group_element *& g1 = e->axis_group_l_a_[a1];
   Axis_group_element *& g2 = e->axis_group_l_a_[a2];