Merge branch 'bug/JAL-2791selectVisibleFeatures' into
[jalview.git] / src / jalview / controller / AlignViewController.java
index 7bb295e..8b001b3 100644 (file)
@@ -247,12 +247,11 @@ public class AlignViewController implements AlignViewControllerI
         boolean found = false;
         for (SequenceFeature sf : sfs)
         {
-          {
-            if (!visibleFeatures.contains(sf.getType())
-                    || fr.getColour(sf) == null) // could pull up getColour to
-                                                 // FeatureRenderer interface
-            {
-              continue;
+          { 
+            if (!visibleFeatures.contains(sf.getType()) 
+                    || fr.getColour(sf) == null) // could pull up getColour to FeatureRenderer interface 
+            { 
+              continue; 
             }
           }
           if (!found)
@@ -260,6 +259,7 @@ public class AlignViewController implements AlignViewControllerI
             nseq++;
           }
           found = true;
+
           int sfStartCol = sq.findIndex(sf.getBegin());
           int sfEndCol = sq.findIndex(sf.getEnd());