]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/rest-collision.cc
release: 1.1.0
[lilypond.git] / lily / rest-collision.cc
index 38d393f16091b54ecc5dc577df2b9eb3966771f6..54cfe814c1458152123cef4c40f81416c84092e8 100644 (file)
@@ -133,12 +133,12 @@ Rest_collision::do_print() const
 void
 Rest_collision::do_substitute_dependency (Score_element*o,Score_element*n)
 {
-  Item*o_l = o->access_Item ();
+  Item*o_l = dynamic_cast <Item *> (o);
   
 
   if (o_l&&o_l->is_type_b (Note_column::static_name ()))
     {
-      Note_column *n_l = n?(Note_column*)n->access_Item ():0;
+      Note_column *n_l = n?(Note_column*)dynamic_cast <Item *> (n):0;
       rest_l_arr_.substitute ((Note_column*)o_l, n_l);
       ncol_l_arr_.substitute ((Note_column*)o_l, n_l);
     }