JAL-2483 corrected finding feature groups
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 30 Jun 2017 15:16:13 +0000 (16:16 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 30 Jun 2017 15:16:13 +0000 (16:16 +0100)
src/jalview/appletgui/FeatureSettings.java

index b0bb372..46498ad 100755 (executable)
@@ -386,11 +386,13 @@ public class FeatureSettings extends Panel implements ItemListener,
       Set<String> visibleGroups = new HashSet<String>();
       for (String group : groups)
       {
-        if (group == null || fr.checkGroupVisibility(group, true))
+        // if (group == null || fr.checkGroupVisibility(group, true))
+        if (group == null || checkGroupState(group))
         {
           visibleGroups.add(group);
         }
       }
+      foundGroups.addAll(groups);
 
       /*
        * get distinct feature types for visible groups