new feature added
authoramwaterhouse <Andrew Waterhouse>
Mon, 14 Aug 2006 15:11:33 +0000 (15:11 +0000)
committeramwaterhouse <Andrew Waterhouse>
Mon, 14 Aug 2006 15:11:33 +0000 (15:11 +0000)
src/jalview/gui/FeatureRenderer.java

index 5843844..c126e24 100755 (executable)
@@ -54,9 +54,6 @@ public class FeatureRenderer
 \r
     String [] renderOrder;\r
 \r
-    boolean newFeatureAdded = false;\r
-\r
-\r
     /**\r
      * Creates a new FeatureRenderer object.\r
      *\r
@@ -177,7 +174,6 @@ public class FeatureRenderer
           || newFeatureAdded)\r
        {\r
          findAllFeatures();\r
-         newFeatureAdded = false;\r
          if(av.featuresDisplayed.size()<1)\r
            return;\r
 \r
@@ -335,18 +331,23 @@ public class FeatureRenderer
     }\r
 \r
 \r
+    boolean newFeatureAdded = false;\r
+\r
     public void featuresAdded()\r
     {\r
-      newFeatureAdded = true;\r
       findAllFeatures();\r
     }\r
 \r
    boolean findingFeatures = false;\r
    synchronized void findAllFeatures()\r
    {\r
+      newFeatureAdded = false;\r
 \r
       if(findingFeatures)\r
+      {\r
+        newFeatureAdded = true;\r
         return;\r
+      }\r
 \r
       findingFeatures = true;\r
       jalview.schemes.UserColourScheme ucs = new\r