fixed array index out of bounds when not removing alignment annotation
authorjprocter <Jim Procter>
Thu, 10 May 2007 08:39:40 +0000 (08:39 +0000)
committerjprocter <Jim Procter>
Thu, 10 May 2007 08:39:40 +0000 (08:39 +0000)
src/jalview/datamodel/Alignment.java

index 9c7f2fb..677f436 100755 (executable)
@@ -489,8 +489,8 @@ public class Alignment
         swap=true;
         continue;
       }
-
-      temp[tIndex++] = annotations[i];
+      if (tIndex<temp.length)
+        temp[tIndex++] = annotations[i];
     }
 
     if (swap)