X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fp-score.cc;h=be107cd929467a8b64e2c3cb35222caa53fde825;hb=9efbad2d9487a05b04423e7e9f062968e8f8eaf4;hp=2dbc75925bfbb21147fd1f53691ce34208159276;hpb=7fa94555679e3197028b1ab3fea02c374cd855da;p=lilypond.git diff --git a/lily/p-score.cc b/lily/p-score.cc index 2dbc75925b..be107cd929 100644 --- a/lily/p-score.cc +++ b/lily/p-score.cc @@ -21,11 +21,7 @@ #include "word-wrap.hh" #include "gourlay-breaking.hh" #include "paper-stream.hh" -#include "ps-stream.hh" -#include "tex-stream.hh" #include "paper-outputter.hh" -#include "ps-outputter.hh" -#include "tex-outputter.hh" #include "file-results.hh" #include "misc.hh" @@ -151,7 +147,7 @@ Paper_score::set_breaking (Array const &breaking) } for (iter (elem_p_list_.top (),i); i.ok () ;) { - Item *i_l =i->access_Item (); + Item *i_l =dynamic_cast (i); if (i_l && !i_l->line_l ()) { i_l->unlink (); @@ -210,8 +206,8 @@ Paper_score::process () Array breaking = calc_breaking (); - Paper_stream* paper_stream_p = global_lookup_l->paper_stream_p (); - outputter_l_ = global_lookup_l->paper_outputter_p (paper_stream_p, paper_l_, header_l_, origin_str_); + Paper_stream* paper_stream_p = paper_l_->paper_stream_p (); + outputter_l_ = paper_l_->paper_outputter_p (paper_stream_p, header_l_, origin_str_); Link_array lines; for (int i=0; i < breaking.size (); i++) @@ -324,10 +320,10 @@ Paper_score::broken_col_range (Item const*l_item_l, Item const*r_item_l) const Item const*r=r_item_l; while (! l->is_type_b(Paper_column::static_name ())) - l = l->axis_group_l_a_[X_AXIS]->access_Score_element ()->access_Item (); + l = dynamic_cast (l->axis_group_l_a_[X_AXIS]); while (! r->is_type_b(Paper_column::static_name ())) - r = r->axis_group_l_a_[X_AXIS]->access_Score_element ()->access_Item (); + r = dynamic_cast(r->axis_group_l_a_[X_AXIS]); PCursor start (l ? find_col ((Paper_column*)l)+1 : col_p_list_.top ()); PCursor stop (r ? find_col ((Paper_column*)r) : col_p_list_.bottom ());