apply gpl development license
[jalview.git] / src / jalview / analysis / Dna.java
index 8bf8962..ce13665 100644 (file)
@@ -1,6 +1,6 @@
 /*\r
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.4)\r
- * Copyright (C) 2008 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
+ * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)\r
+ * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle\r
  * \r
  * This program is free software; you can redistribute it and/or\r
  * modify it under the terms of the GNU General Public License\r
@@ -515,11 +515,14 @@ public class Dna
           codons.codons[aspos] = new int[]\r
           { cdp[0], cdp[1], cdp[2] };\r
         }\r
-        aspos++;\r
         if (aspos >= codons.aaWidth)\r
         {\r
-          codons.aaWidth = aspos + 1;\r
+          // update maximum alignment width \r
+          // (we can do this without calling checkCodonFrameWidth because it was already done above)\r
+          codons.setAaWidth(aspos);\r
         }\r
+        // ready for next translated reading frame alignment position (if any)\r
+        aspos++;\r
       }\r
     }\r
     if (resSize > 0)\r