From 9994d975a619f3718027a9002bb35d67c24e7ffb Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 17 Jun 2013 15:14:40 +0100 Subject: [PATCH] JAL-1312 patch for regression noticed after patch to jalview.analysis.Dna cdna translation --- src/jalview/datamodel/AlignedCodonFrame.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jalview/datamodel/AlignedCodonFrame.java b/src/jalview/datamodel/AlignedCodonFrame.java index 48b3346..6215a93 100644 --- a/src/jalview/datamodel/AlignedCodonFrame.java +++ b/src/jalview/datamodel/AlignedCodonFrame.java @@ -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. } } -- 1.7.10.2