From: Jim Procter Date: Mon, 17 Jun 2013 14:14:40 +0000 (+0100) Subject: JAL-1312 patch for regression noticed after patch to jalview.analysis.Dna cdna transl... X-Git-Tag: Jalview_2_9~240^2~4 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=9994d975a619f3718027a9002bb35d67c24e7ffb;p=jalview.git JAL-1312 patch for regression noticed after patch to jalview.analysis.Dna cdna translation --- 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. } }