X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fconcurrent-hairpin-engraver.cc;h=5d04d258fe8fab77519367679f0544edd0561b38;hb=952705bbbb000581a13836e6a733df04511e93c5;hp=873e8b5994e01d9ca908bc800b365649f4656b89;hpb=d61cf3bbdb1c6670a127ba3baddf2f04d3e34fd3;p=lilypond.git diff --git a/lily/concurrent-hairpin-engraver.cc b/lily/concurrent-hairpin-engraver.cc index 873e8b5994..5d04d258fe 100644 --- a/lily/concurrent-hairpin-engraver.cc +++ b/lily/concurrent-hairpin-engraver.cc @@ -75,8 +75,8 @@ Concurrent_hairpin_engraver::stop_translation_timestep () if (arriving_hairpins_.size ()) { if (arriving_hairpins_.size () > 1) - for (vsize i = 0; i < arriving_hairpins_.size (); i++) - for (vsize j = i; j < arriving_hairpins_.size (); j++) + for (vsize i = 0; i < arriving_hairpins_.size () - 1; i++) + for (vsize j = i + 1; j < arriving_hairpins_.size (); j++) { Pointer_group_interface::add_grob (arriving_hairpins_[i], ly_symbol2scm ("concurrent-hairpins"), arriving_hairpins_[j]); Pointer_group_interface::add_grob (arriving_hairpins_[j], ly_symbol2scm ("concurrent-hairpins"), arriving_hairpins_[i]);