Hidden representatives moved from sequence to viewport
[jalview.git] / src / jalview / analysis / Finder.java
index e24a6c0..c385ac8 100644 (file)
@@ -22,7 +22,7 @@ public class Finder {
         this.alignment=alignment;
         this.selection = selection;
     }
-    
+
     public Finder(AlignmentI alignment, SequenceGroup selectionGroup, int seqIndex, int resIndex) {
         this(alignment, selectionGroup);
         this.seqIndex=seqIndex;
@@ -45,7 +45,7 @@ public class Finder {
         {
             int res = Integer.parseInt(searchString);
             found = true;
-            if (selection == null || selection.getSize(false) < 1)
+            if (selection == null || selection.getSize() < 1)
             {
               seq = (Sequence) alignment.getSequenceAt(0);
             }
@@ -65,10 +65,10 @@ public class Finder {
 
         int end = alignment.getHeight();
 
-        
+
         if (selection != null)
         {
-            if ((selection.getSize(false) < 1) ||
+            if ((selection.getSize() < 1) ||
                     ((selection.getEndRes() - selection.getStartRes()) < 2))
             {
                 selection = null;
@@ -79,7 +79,7 @@ public class Finder {
         {
             seq = (Sequence) alignment.getSequenceAt(seqIndex);
 
-            if ((selection != null) && !selection.getSequences(false).contains(seq))
+            if ((selection != null) && !selection.getSequences(null).contains(seq))
             {
                 seqIndex++;
                 resIndex = 0;
@@ -97,7 +97,7 @@ public class Finder {
             {
                 item = item.substring(0, selection.getEndRes() + 1);
             }
-            
+
             ///Shall we ignore gaps???? - JBPNote: Add Flag for forcing this or not
             StringBuffer noGapsSB = new StringBuffer();
             int insertCount = 0;