From ce2b9960f07e7182c7e58fa993b7ea77862f018b Mon Sep 17 00:00:00 2001 From: jprocter Date: Wed, 12 Nov 2008 11:27:44 +0000 Subject: [PATCH] minor translation bug --- src/jalview/analysis/Dna.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/jalview/analysis/Dna.java b/src/jalview/analysis/Dna.java index 8bf8962..30bc378 100644 --- a/src/jalview/analysis/Dna.java +++ b/src/jalview/analysis/Dna.java @@ -515,11 +515,14 @@ public class Dna codons.codons[aspos] = new int[] { cdp[0], cdp[1], cdp[2] }; } - aspos++; if (aspos >= codons.aaWidth) { - codons.aaWidth = aspos + 1; + // update maximum alignment width + // (we can do this without calling checkCodonFrameWidth because it was already done above) + codons.setAaWidth(aspos); } + // ready for next translated reading frame alignment position (if any) + aspos++; } } if (resSize > 0) -- 1.7.10.2