Dont use FeatureFetcher if nucleotide
authoramwaterhouse <Andrew Waterhouse>
Wed, 15 Feb 2006 15:25:52 +0000 (15:25 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 15 Feb 2006 15:25:52 +0000 (15:25 +0000)
src/jalview/gui/AlignFrame.java

index 5778a7e..9bcb759 100755 (executable)
@@ -174,8 +174,8 @@ public class AlignFrame
   public void setGUINucleotide(boolean nucleotide)\r
   {\r
     showTranslation.setVisible( nucleotide );\r
-    sequenceFeatures.setVisible(!nucleotide );\r
-    featureSettings.setVisible( !nucleotide );\r
+    //sequenceFeatures.setVisible(!nucleotide );\r
+    //featureSettings.setVisible( !nucleotide );\r
     conservationMenuItem.setVisible( !nucleotide );\r
     modifyConservation.setVisible(   !nucleotide );\r
 \r
@@ -1338,7 +1338,7 @@ public class AlignFrame
   {\r
     viewport.showSequenceFeatures(sequenceFeatures.isSelected());\r
 \r
-    if (viewport.showSequenceFeatures)\r
+    if (viewport.showSequenceFeatures && !viewport.alignment.isNucleotide())\r
     {\r
       new SequenceFeatureFetcher(viewport.\r
          alignment,\r