From: fred Date: Sun, 24 Nov 1996 21:10:12 +0000 (+0000) Subject: lilypond-0.0.11 X-Git-Tag: release/1.5.59~6761 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=ccbb1fbb16fa3bf599314713fd13608a44787a37;p=lilypond.git lilypond-0.0.11 --- diff --git a/src/scommands.cc b/src/scommands.cc index 00830e4115..2787873adb 100644 --- a/src/scommands.cc +++ b/src/scommands.cc @@ -42,7 +42,7 @@ Score_commands::last_insertion(Real w) Command*c = new Command(w); c->priority = -10000; pc.add(c); - pc ++; + pc++; } return pc; @@ -120,9 +120,9 @@ void Score_commands::insert_between(Command victim, PCursor firstc, PCursor last) { - assert(last->when==firstc->when); PCursor c(firstc+1); - assert(last.ok()); + assert(last->when==firstc->when&&firstc < last&&last.ok()); + while (c < last) { if (c->priority <= victim.priority) { c.insert(new Command(victim));