X-Git-Url: https://git.donarmstrong.com/lilypond.git?a=blobdiff_plain;f=lily%2Flocal-key-item.cc;h=a0dc2907a6b4f72326b8d1c2fe4bc1b9b5cef7b1;hb=9efbad2d9487a05b04423e7e9f062968e8f8eaf4;hp=2b2d0dd5db1660f3790c532679ad7451275355eb;hpb=7fa94555679e3197028b1ab3fea02c374cd855da;p=lilypond.git diff --git a/lily/local-key-item.cc b/lily/local-key-item.cc index 2b2d0dd5db..a0dc2907a6 100644 --- a/lily/local-key-item.cc +++ b/lily/local-key-item.cc @@ -116,8 +116,8 @@ IMPLEMENT_IS_TYPE_B1(Local_key_item,Item); void Local_key_item::do_substitute_dependency (Score_element*o,Score_element*n) { - Item* o_l = o->access_Item (); - Item* n_l = n?n->access_Item ():0; + Item* o_l = dynamic_cast (o); + Item* n_l = n?dynamic_cast (n):0; support_items_.substitute (o_l, n_l); }