X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftime-scaled-music-iterator.cc;h=56e63ce311bbcdccb35108a4abd845c7c0f90a2b;hb=c2fb0a612743e63154edc1bc2944f90320d082e7;hp=b681a693421ee7f4ac041afc89be6685c1899e4e;hpb=c3ff1c6cd20e15e9036ee7120012e05b1d62a46d;p=lilypond.git diff --git a/lily/time-scaled-music-iterator.cc b/lily/time-scaled-music-iterator.cc index b681a69342..56e63ce311 100644 --- a/lily/time-scaled-music-iterator.cc +++ b/lily/time-scaled-music-iterator.cc @@ -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 ();