Merge branch 'bug/JAL-2791selectVisibleFeatures' into
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 31 Oct 2017 18:12:36 +0000 (18:12 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 31 Oct 2017 18:12:36 +0000 (18:12 +0000)
features/JAL-1793VCF

Conflicts:
src/jalview/controller/AlignViewController.java

1  2 
src/jalview/controller/AlignViewController.java

@@@ -243,20 -244,22 +244,22 @@@ public class AlignViewController implem
          List<SequenceFeature> sfs = sq.findFeatures(startColumn,
                  endColumn, featureType);
  
-         if (!sfs.isEmpty())
-         {
-           nseq++;
-         }
+         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)
+           {
+             nseq++;
+           }
+           found = true;
++
            int sfStartCol = sq.findIndex(sf.getBegin());
            int sfEndCol = sq.findIndex(sf.getEnd());