JAL-1312 patch for regression noticed after patch to jalview.analysis.Dna cdna transl...
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Mon, 17 Jun 2013 14:14:40 +0000 (15:14 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Mon, 17 Jun 2013 14:14:40 +0000 (15:14 +0100)
src/jalview/datamodel/AlignedCodonFrame.java

index 48b3346..6215a93 100644 (file)
@@ -120,7 +120,7 @@ public class AlignedCodonFrame
     if (aspos < aaWidth)
     {
       aaWidth++;
-      System.arraycopy(codons, aspos, codons, aspos + 1, aaWidth - aspos);
+      System.arraycopy(codons, aspos, codons, aspos + 1, codons.length - aspos - 1);
       codons[aspos] = null; // clear so new codon position can be marked.
     }
   }