X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Ftime-scaled-music-iterator.cc;h=56e63ce311bbcdccb35108a4abd845c7c0f90a2b;hb=a69b417a5cfb4dc3b78e931b9a9358f8df07adc3;hp=b681a693421ee7f4ac041afc89be6685c1899e4e;hpb=cbb205d40a19c0d2d9801031a63607e108a18038;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 ();