From: fred Date: Sun, 24 Mar 2002 19:56:41 +0000 (+0000) Subject: lilypond-0.1.36 X-Git-Tag: release/1.5.59~3948 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1244e19c9f61ebb4ea587817bc9fb615fbd50553;p=lilypond.git lilypond-0.1.36 --- diff --git a/lily/axis-group-administration.cc b/lily/axis-group-administration.cc index 5537d742a8..11eb1263b7 100644 --- a/lily/axis-group-administration.cc +++ b/lily/axis-group-administration.cc @@ -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];