From: fred Date: Sun, 24 Mar 2002 19:36:53 +0000 (+0000) Subject: lilypond-0.0.45 X-Git-Tag: release/1.5.59~5097 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ba41b1e6dc12982e898de764906f8b235ec44e48;p=lilypond.git lilypond-0.0.45 --- diff --git a/lily/include/score.hh b/lily/include/score.hh index 293801a98e..cf86ad342a 100644 --- a/lily/include/score.hh +++ b/lily/include/score.hh @@ -71,7 +71,7 @@ private: void paper(); // utils: - PCursor create_cols(Moment); + PCursor create_cols(Moment, PCursor &last); Score(Score const&){} diff --git a/lily/staff.cc b/lily/staff.cc index 31cba7801f..b23f163d29 100644 --- a/lily/staff.cc +++ b/lily/staff.cc @@ -6,9 +6,6 @@ (c) 1997 Han-Wen Nienhuys */ - - - #include "proto.hh" #include "plist.hh" #include "staff.hh" @@ -23,6 +20,8 @@ #include "command-request.hh" // todo #include "midi-stream.hh" #include "pqueue.hh" + + void Staff::add(PointerList const &l) { @@ -94,9 +93,9 @@ void Staff::setup_staffcols() { PQueue subtle_req_pq; + PCursor last(cols_); for (iter_top(voice_list_,i); i.ok(); i++) { - PCursor last(cols_); Moment now = i->start; iter_top(i->elts,j); while( j.ok()) { @@ -113,14 +112,13 @@ Staff::setup_staffcols() } if(next == now) { s_l->add(j, subtle_req_pq); - now += j->duration; + now += j->duration_; j++; } } } - PCursor last(cols_); - + last = cols_.top(); while (subtle_req_pq.size()) { Moment front =subtle_req_pq.front_idx(); Staff_column *s_l = get_col(front, &last); @@ -128,7 +126,6 @@ Staff::setup_staffcols() s_l->setup_one_request(subtle_req_pq.get()); // ugh! } - OK(); } void