From: fred Date: Sun, 24 Mar 2002 19:27:55 +0000 (+0000) Subject: lilypond-0.0.23 X-Git-Tag: release/1.5.59~5610 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=95a525b28f3710655c620da0cffae06af917702a;p=lilypond.git lilypond-0.0.23 --- diff --git a/src/voice.cc b/src/voice.cc index f4372893af..334d1b4a5f 100644 --- a/src/voice.cc +++ b/src/voice.cc @@ -27,17 +27,20 @@ Voice::print() const { #ifndef NPRINT mtor << "start: "<< start<print(); + for (iter_top(elts,i); i.ok(); i++) + i->print(); #endif } Moment Voice::last() const { - Moment l =start; - for (iter_top(elts,vec); vec.ok(); vec++) - l += vec->duration; + Moment l =0; + if (elts.size()) + l = start; + + for (iter_top(elts,i); i.ok(); i++) + l += i->duration; return l; } /****************************************************************/