X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fchord-iterator.cc;h=a21a7862cc56b1aa29d694b52d610864333b3e19;hb=c3e003dacb5689ffe384d3a2f2d5dc2afb9439bb;hp=054990199fff85b35569a7294a439b0a2d9f7bd6;hpb=6a1295eaacbc3e6b5a7ce19f7f942b23f8d7f2ff;p=lilypond.git diff --git a/lily/chord-iterator.cc b/lily/chord-iterator.cc index 054990199f..a21a7862cc 100644 --- a/lily/chord-iterator.cc +++ b/lily/chord-iterator.cc @@ -74,10 +74,11 @@ IMPLEMENT_IS_TYPE_B1(Chord_iterator,Music_iterator); Moment Chord_iterator::next_moment() const { - Moment next_ = infinity_mom; + Moment next; + next.set_infinite (1); for (PCursor i (children_p_list_.top()); i.ok (); i++) - next_ = next_ next_moment() ; - return next_; + next = next next_moment() ; + return next; }