fixed for display of 'null' group features
authorjprocter <Jim Procter>
Wed, 11 Apr 2007 14:16:55 +0000 (14:16 +0000)
committerjprocter <Jim Procter>
Wed, 11 Apr 2007 14:16:55 +0000 (14:16 +0000)
src/jalview/gui/FeatureRenderer.java
src/jalview/gui/FeatureSettings.java

index c59ec1d..596203b 100755 (executable)
@@ -268,8 +268,9 @@ public class FeatureRenderer
 
         if (featureGroups != null
             && sequenceFeatures[sfindex].featureGroup != null
-            &&
-            featureGroups.containsKey(sequenceFeatures[sfindex].featureGroup)
+            && 
+            sequenceFeatures[sfindex].featureGroup.length()!=0
+            && featureGroups.containsKey(sequenceFeatures[sfindex].featureGroup)
             &&
             ! ( (Boolean) featureGroups.get(sequenceFeatures[sfindex].
                                             featureGroup)).
index acd7694..4c0450c 100755 (executable)
@@ -198,9 +198,9 @@ public class FeatureSettings
           if (!allGroups.contains(group))
           {
             allGroups.addElement(group);
-            if (checkGroupState(group))
+            if (group!=null)
             {
-              // continue; // skip this group's feature - we've done it already ? 
+              checkGroupState(group);
             }
           }
         }
@@ -314,7 +314,8 @@ public class FeatureSettings
         if (group == null || fr.featureGroups.get(group) == null ||
             ( (Boolean) fr.featureGroups.get(group)).booleanValue())
         {
-          checkGroupState(group);
+          if (group!=null)
+            checkGroupState(group);
           type = tmpfeatures[index].getType();
           if (!visibleChecks.contains(type))
           {