X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftime-scaled-music-iterator.cc;h=8228b60eaaf62811be1e5d5c78d7cb3c182c428e;hb=e3d67c22f5f44859df86b9e3f1c26526a7f765dc;hp=b681a693421ee7f4ac041afc89be6685c1899e4e;hpb=d2300573cae3c1920400d040faddd33f17b43c2d;p=lilypond.git diff --git a/lily/time-scaled-music-iterator.cc b/lily/time-scaled-music-iterator.cc index b681a69342..8228b60eaa 100644 --- a/lily/time-scaled-music-iterator.cc +++ b/lily/time-scaled-music-iterator.cc @@ -3,7 +3,7 @@ source file of the GNU LilyPond music typesetter - (c) 1998--2007 Han-Wen Nienhuys , + (c) 1998--2008 Han-Wen Nienhuys , Erik Sandberg */ @@ -120,15 +120,11 @@ Time_scaled_music_iterator::process (Moment m) void Time_scaled_music_iterator::construct_children () { + spanner_duration_ = music_get_length (); + Moment *mp = unsmob_moment (get_outlet ()->get_property ("tupletSpannerDuration")); if (mp) - { - spanner_duration_ = mp->main_part_; - } - else - { - spanner_duration_ = music_get_length (); - } + spanner_duration_ = min (mp->main_part_, spanner_duration_); Music_wrapper_iterator::construct_children ();