]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/head-column.cc
release: 0.1.11
[lilypond.git] / lily / head-column.cc
index a5d1ecbebd9363e773823c74f964e8e6997b2cbb..b8707965a65003ffb1d0c0823ef208f6cf52a220 100644 (file)
 Head_column::Head_column()
 {
   stem_l_ = 0;
-  dir_i_ =0;
+  dir_ =CENTER;
 }
 
 void
 Head_column::do_substitute_dependency (Score_elem*o,
-                                     Score_elem*n)
+                                      Score_elem*n)
 {
   Script_column::do_substitute_dependency (o,n);
   if (o->name() == Note_head::static_name ()) 
     {
-       head_l_arr_.substitute ((Note_head*)o->item(), 
-                               (n)? (Note_head*)n->item() : 0);
+      head_l_arr_.substitute ((Note_head*)o->item(), 
+                             (n)? (Note_head*)n->item() : 0);
     }
   if (stem_l_ == o) 
     {
-       stem_l_ = n ? (Stem*)n->item():0;
+      stem_l_ = n ? (Stem*)n->item():0;
     }
 }
 
@@ -40,8 +40,8 @@ Head_column::set (Stem*stem_l)
 {
   stem_l_ = stem_l;
   Score_elem::add_dependency (stem_l);
-  for (int i=0; script_l_arr_.size(); i++)
-       script_l_arr_[i]->set_stem (stem_l);
+  for (int i=0; i < script_l_arr_.size(); i++)
+    script_l_arr_[i]->set_stem (stem_l);
 }
 
 void
@@ -49,7 +49,7 @@ Head_column::add (Script *script_l)
 {
   Script_column::add (script_l) ;
   if  (stem_l_)
-       script_l->set_stem (stem_l_);
+    script_l->set_stem (stem_l_);
 }
 void
 Head_column::add (Note_head *n_l)
@@ -73,10 +73,10 @@ Head_column::do_print() const
 void
 Head_column::do_pre_processing()
 {
-  if (!dir_i_)
+  if (!dir_)
     {
-       if (stem_l_)
-           dir_i_ = stem_l_->dir_i_;
+      if (stem_l_)
+       dir_ = stem_l_->dir_;
     }
   Script_column::do_pre_processing();
 }