- if (!(i.elem_l_->name() == Note_column::static_name ()))
- return;
-
- if (!col_p_) {
- col_p_ = new Collision;
- announce_element (Score_elem_info (col_p_,0));
+ if (i.elem_l_->is_type_b (Note_column::static_name ()))
+ {
+ Note_column * c = (Note_column*) i.elem_l_->item ();
+ if (c->rest_b ())
+ return ;
+ if (!col_p_)
+ {
+ col_p_ = new Collision;
+ announce_element (Score_elem_info (col_p_,0));
+ }
+ col_p_->add (c);