]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/percent-repeat-iterator.cc
Fix some bugs in the dynamic engraver and PostScript backend
[lilypond.git] / lily / percent-repeat-iterator.cc
index 27481cf1ab1b3335fc469989f7723a4d1a0a2be9..7ba527da5d9aef489d8986046ca658c90810afc9 100644 (file)
@@ -34,7 +34,7 @@ Percent_repeat_iterator::get_music_list () const
     percent->set_spot (*mus->origin ());
     percent->set_property ("length", length);
     if (repeats > 1)
-      percent->set_property ("repeat-count", scm_int2num (i));
+      percent->set_property ("repeat-count", scm_int2num (i - 1));
     child_list = scm_cons (percent->unprotect (), child_list);
   }
   child_list = scm_cons (child->self_scm (), child_list);