]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/vertical-align-elem.cc
release: 0.1.31
[lilypond.git] / lily / vertical-align-elem.cc
index 02d1823b25b71621aa14732001f151472ac670cc..8cc0ecfd499a09323583acb90889a91b49de6f9f 100644 (file)
@@ -22,10 +22,10 @@ Vertical_align_element::do_substitute_dependency (Score_elem*o,Score_elem*n)
 {
   int i;
   while ((i = elem_l_arr_.find_i (o))>=0) 
-       if (n) 
-           elem_l_arr_[i] = n;
-       else
-           elem_l_arr_.del (i);
+    if (n) 
+      elem_l_arr_[i] = n;
+    else
+      elem_l_arr_.del (i);
 }
 
 /**
@@ -40,18 +40,18 @@ Vertical_align_element::do_post_processing()
   Array<Interval> dims;
   for (int i=0; i < elem_l_arr_.size(); i++) 
     {
-       Interval y = elem_l_arr_[i]->height() ;
-       if (y.empty_b())
-           y = Interval (0,0);
+      Interval y = elem_l_arr_[i]->height() ;
+      if (y.empty_b())
+       y = Interval (0,0);
        
-       dims.push (y);
+      dims.push (y);
     }
 
   Real where_f=0;
   for (int i=0 ;  i < elem_l_arr_.size(); i++) 
     {
-       elem_l_arr_[i]->translate (- dims[i][1] - where_f, Y_AXIS);
-       where_f += dims[i].length();
+      elem_l_arr_[i]->translate_axis (- dims[i][1] - where_f, Y_AXIS);
+      where_f += dims[i].length();
     }
 }
 
@@ -64,7 +64,7 @@ Vertical_align_element::contains_b (Score_elem const *e) const
 Vertical_align_element::Vertical_align_element()
 {
   transparent_b_ = true;
-  empty_b_ =true;
+  set_empty (true);
 }