X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Faxis-group-item.cc;h=1559e5dda352f1d796fc3bd737c3f9c0d60c37c8;hb=0c8900ebb927c893d684b2eecf8e46a2e3701d8a;hp=2706fa8faa658fc8dffcd57fa05489f8bab009f0;hpb=69b9cead5afe7164b9053d26eba582fec3825ef8;p=lilypond.git diff --git a/lily/axis-group-item.cc b/lily/axis-group-item.cc index 2706fa8faa..1559e5dda3 100644 --- a/lily/axis-group-item.cc +++ b/lily/axis-group-item.cc @@ -3,20 +3,20 @@ source file of the GNU LilyPond music typesetter - (c) 1997--1998 Han-Wen Nienhuys + (c) 1997--1999 Han-Wen Nienhuys */ #include "axis-group-item.hh" #include "p-col.hh" -IMPLEMENT_IS_TYPE_B2(Axis_group_item, Axis_group_element, Item); + void Axis_group_item::OK() const { - Link_array elems = elem_l_arr (); + Link_array elems = elem_l_arr (); for (int i=0; i < elems.size(); i++) { - Item * it_l = elems[i]->item(); + Item * it_l = dynamic_cast (elems[i]); assert (it_l); } } @@ -24,23 +24,23 @@ Axis_group_item::OK() const void Axis_group_item::do_breakable_col_processing() { - if (!breakable_b_ || !column_l ()->breakable_b_) // ugh should merge with Item code + if (!breakable_b ()) // ugh should merge with Item code return; - + OK(); copy_breakable_items(); - Link_array elems = elem_l_arr (); + Link_array elems = elem_l_arr (); for (int i=0; i < elems.size(); i++) { - Item* it_l = elems[i]->item(); + Item* it_l = dynamic_cast (elems[i]); Direction j=LEFT; do { Item *new_l = - it_l->find_prebroken_piece (broken_to_drul_[j]->break_status_i_); - ((Axis_group_item*)broken_to_drul_[j])->add_element (new_l); + it_l->find_prebroken_piece (broken_to_drul_[j]->break_status_dir_); + (dynamic_cast (broken_to_drul_[j]))->add_element (new_l); } while (flip(&j)!=LEFT); }