bugfix for deleted annotation undo
authorjprocter <Jim Procter>
Fri, 27 Apr 2007 08:51:13 +0000 (08:51 +0000)
committerjprocter <Jim Procter>
Fri, 27 Apr 2007 08:51:13 +0000 (08:51 +0000)
src/jalview/commands/EditCommand.java

index ce88127..cbcc700 100644 (file)
@@ -577,7 +577,7 @@ public class EditCommand
                            0, temp, 0, copylen); //command.position);
 
           Annotation[] deleted = new Annotation[command.number];
-          if (copylen>command.position) {
+          if (copylen>=command.position) {
             copylen = Math.min(command.number, annotations[a].annotations.length-command.position);
             if (copylen>0)
             {