From: fred Date: Sun, 24 Mar 2002 19:33:03 +0000 (+0000) Subject: lilypond-0.0.34 X-Git-Tag: release/1.5.59~5315 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=995b1e0e7bcd77e5d4d74e29ef55f0dd478fbc08;p=lilypond.git lilypond-0.0.34 --- diff --git a/src/lyricwalker.cc b/src/lyricwalker.cc index 51a2b03594..fbff9a8cd5 100644 --- a/src/lyricwalker.cc +++ b/src/lyricwalker.cc @@ -13,15 +13,20 @@ #include "lyricwalker.hh" #include "debug.hh" #include "lyricitem.hh" +#include "stcol.hh" void Lyric_walker::process_requests() { allow_break(); - for (int i = 0; i < lcol_l()->lreq_l_array_.size(); i++) { - lcol_l()->typeset_item( - new Lyric_item(lcol_l()->lreq_l_array_[i],i) - ); + + int req_count=0; + for (int i = 0; i < ptr()->musicalreq_l_arr_.size(); i++) { + Lyric_req * lreq_l = ptr()->musicalreq_l_arr_[i]->lreq_l(); + if (!lreq_l) + continue; + Item *lp = new Lyric_item(lreq_l,req_count++); + ptr()->typeset_musical_item( lp); } } @@ -32,15 +37,3 @@ Lyric_walker::Lyric_walker(Lyric_staff* lstaff_l) } - -Lyric_staff* -Lyric_walker::lstaff_l() -{ - return (Lyric_staff*)staff_l_; -} - -Lyric_column* -Lyric_walker::lcol_l() -{ - return (Lyric_column*) *(*this); -}