]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/page-turn-engraver.cc
Fix #230.
[lilypond.git] / lily / page-turn-engraver.cc
index c2817479d3d9c586c6793cffdbb4364bb8ad079e..461ae1f0d8607e6faab8301bcd87b826126ec94c 100644 (file)
@@ -288,7 +288,7 @@ Page_turn_engraver::finalize ()
 
          /* it's possible that the last of my newly-split events overlaps the next repeat_penalty,
             in which case we need to refilter that event */
-         if (rep_index < repeat_penalties_.size () - 1
+         if (rep_index + 1 < repeat_penalties_.size ()
              && split.size ()
              && split.back ().duration_[RIGHT] > repeat_penalties_[rep_index+1].duration_[LEFT])
            {