]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/note-column.cc
release: 0.1.11
[lilypond.git] / lily / note-column.cc
index 19cf429928ccd33c9aded260de7c238bf5a24851..f310d0828c356f5f3b470f5ee9901cb4bf98b5d2 100644 (file)
 
 IMPLEMENT_IS_TYPE_B1(Note_column,Head_column);
 
-void
-Note_column::set (Stem*s)
-{
-  stem_l_ = s;
-  add_support (s);
-}
-
 Note_column::Note_column()
 {
   h_shift_b_ =false;
@@ -33,10 +26,10 @@ Note_column::sort()
 }
   
 Interval_t<int>
-Note_column::head_positions_interval()const
+Note_column::head_positions_interval() const
 {
   ((Note_column*)this)->sort();
-  return Interval_t<int> ( head_l_arr_[0]->position_i_, 
+  return Interval_t<int> (head_l_arr_[0]->position_i_, 
                             head_l_arr_.top()->position_i_);
 
 }
@@ -45,9 +38,9 @@ Note_column::head_positions_interval()const
 void
 Note_column::do_pre_processing()
 {
-  if (!dir_i_&& !stem_l_)
+  if (!dir_&& !stem_l_)
     {
-       dir_i_ = (head_positions_interval().center () >=  5) ? -1 : 1;
+       dir_ = (head_positions_interval().center () >=  5) ? DOWN:UP;
     }
   Head_column::do_pre_processing();
 }