]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/axis-group-element.cc
release: 1.1.1
[lilypond.git] / lily / axis-group-element.cc
index 8aa8263668e3f13dfc3cb3b6442d782e13ac9db0..a19d26c6c310669b43fcc6f2cba668111458159c 100644 (file)
@@ -36,7 +36,8 @@ Axis_group_element::elem_l_arr () const
   */
   Link_array<Score_element> r;
   for (int i=0; i < elem_l_arr_.size (); i++)
-    r.push (elem_l_arr_[i]->access_Score_element());
+    r.push (dynamic_cast<Score_element*>(elem_l_arr_[i]));
+      
   return r;
 }
 
@@ -49,7 +50,7 @@ Axis_group_element::get_children ()
     {
       Score_element* e = elems[i];
       childs.push (e) ;
-      Axis_group_element * axis_group= e->access_Axis_group_element ();
+      Axis_group_element * axis_group= dynamic_cast <Axis_group_element *> (e);
       if (axis_group)
        childs.concat (axis_group->get_children ());      
     }
@@ -75,12 +76,5 @@ Axis_group_element::Axis_group_element ()
   transparent_b_ = true;
 }
 
-Axis_group_element*
-Axis_group_element::access_Axis_group_element ()
-{
-  return this;
-}
-
-
 
 IMPLEMENT_IS_TYPE_B2(Axis_group_element, Score_element, Graphical_axis_group);