X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fnote-column.cc;h=f310d0828c356f5f3b470f5ee9901cb4bf98b5d2;hb=2862b1027f316a2f0444fa92e441ee28acf7a463;hp=19cf429928ccd33c9aded260de7c238bf5a24851;hpb=68ffccad7c4d4ce0386cb60c537c99523e61c4d9;p=lilypond.git diff --git a/lily/note-column.cc b/lily/note-column.cc index 19cf429928..f310d0828c 100644 --- a/lily/note-column.cc +++ b/lily/note-column.cc @@ -14,13 +14,6 @@ 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 -Note_column::head_positions_interval()const +Note_column::head_positions_interval() const { ((Note_column*)this)->sort(); - return Interval_t ( head_l_arr_[0]->position_i_, + return Interval_t (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(); }