translate cDNA adjusted
authoramwaterhouse <Andrew Waterhouse>
Thu, 16 Feb 2006 17:30:04 +0000 (17:30 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 16 Feb 2006 17:30:04 +0000 (17:30 +0000)
src/jalview/gui/AlignFrame.java

index a70adfc..35ac570 100755 (executable)
@@ -179,13 +179,8 @@ public class AlignFrame
     conservationMenuItem.setVisible( !nucleotide );\r
     modifyConservation.setVisible(   !nucleotide );\r
 \r
-    //Deal with separators\r
     //Remember AlignFrame always starts as protein\r
-    if(nucleotide)\r
-    {\r
-      viewMenu.remove(viewMenu.getItemCount()-2);\r
-    }\r
-    else\r
+    if(!nucleotide)\r
     {\r
       calculateMenu.remove(calculateMenu.getItemCount()-2);\r
     }\r
@@ -2448,6 +2443,8 @@ public void showTranslation_actionPerformed(ActionEvent e)
     protein = new StringBuffer();\r
     seq = AlignSeq.extractGaps("-. ", viewport.alignment.getSequenceAt(s).getSequence());\r
     resSize = seq.length();\r
+    resSize -= resSize%3;\r
+\r
     for(res = 0; res < resSize; res+=3)\r
     {\r
       String codon = seq.substring(res, res+3);\r