]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.11
authorfred <fred>
Sun, 24 Nov 1996 21:10:12 +0000 (21:10 +0000)
committerfred <fred>
Sun, 24 Nov 1996 21:10:12 +0000 (21:10 +0000)
src/scommands.cc

index 00830e4115cd920f9abb00c0c1014163cb8a307c..2787873adbeda434388a1db5386c3e81aca94244 100644 (file)
@@ -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<Command*> firstc,
                               PCursor<Command*> last)
 {
-    assert(last->when==firstc->when);
     PCursor<Command*> 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));