X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fplet-spanner.cc;h=4a032ffc72354c5b418b4541b830d7467e456dad;hb=9efbad2d9487a05b04423e7e9f062968e8f8eaf4;hp=5b7637f12e103b07a417c55bbb54dcbb5cc3b3d2;hpb=7fa94555679e3197028b1ab3fea02c374cd855da;p=lilypond.git diff --git a/lily/plet-spanner.cc b/lily/plet-spanner.cc index 5b7637f12e..4a032ffc72 100644 --- a/lily/plet-spanner.cc +++ b/lily/plet-spanner.cc @@ -130,10 +130,10 @@ Plet_spanner::do_post_processing () void Plet_spanner::do_substitute_dependency (Score_element* o, Score_element* n) { - Stem* new_l = n ? (Stem*)n->access_Item () : 0; - if (o->access_Item () == stem_l_drul_[LEFT]) + Stem* new_l = n ? (Stem*)dynamic_cast (n) : 0; + if (dynamic_cast (o) == stem_l_drul_[LEFT]) stem_l_drul_[LEFT] = new_l; - else if (o->access_Item () == stem_l_drul_[RIGHT]) + else if (dynamic_cast (o) == stem_l_drul_[RIGHT]) stem_l_drul_[RIGHT] = new_l; }