]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/hara-kiri-vertical-group-spanner.cc
release: 1.3.44
[lilypond.git] / lily / hara-kiri-vertical-group-spanner.cc
index ba10c73d46bb87dc5834df6c3cccc9ad54514e76..12d5093c079185a83059eb16c3d325b3d9824071 100644 (file)
@@ -16,7 +16,6 @@
 Hara_kiri_group_spanner::Hara_kiri_group_spanner()
 {
   set_elt_property ("items-worth-living", SCM_EOL);
-  axis_group (this).set_axes(Y_AXIS,Y_AXIS);
 }
 
 void 
@@ -35,7 +34,7 @@ Hara_kiri_group_spanner::after_line_breaking ()
   if (gh_pair_p (worth))
     return;
 
-  Link_array<Score_element> childs = axis_group (this).get_children ();
+  Link_array<Score_element> childs = Axis_group_interface (this).get_children ();
   for (int i = 0; i < childs.size (); i++)
     {
       Score_element* s = childs[i];
@@ -43,12 +42,12 @@ Hara_kiri_group_spanner::after_line_breaking ()
       if ( line_l () != s->line_l ())
        programming_error ("Killing other children too");
       s->set_elt_property ("transparent", SCM_BOOL_T);
-      s->set_empty (X_AXIS);
-      s->set_empty (Y_AXIS);
+      s->set_extent_callback (0, X_AXIS);
+      s->set_extent_callback (0, Y_AXIS);
 
     }
-  set_empty (X_AXIS);
-  set_empty (Y_AXIS);  
+  set_extent_callback (0, X_AXIS);
+  set_extent_callback (0, Y_AXIS);  
 }