JAL-2674 fix up interface of locateVisibleBoundsOfSequence
[jalview.git] / src / jalview / datamodel / HiddenColumns.java
index c0a43ee..305a6f1 100644 (file)
@@ -923,7 +923,7 @@ public class HiddenColumns
       {
         int ifpos = seq.findIndex(fpos) - 1;
         int ilpos = seq.findIndex(lpos) - 1;
-        return new int[] { ifpos, ilpos, fpos, lpos, ifpos, ilpos };
+        return new int[] { ifpos, ifpos, ilpos };
       }
 
       // Simply walk along the sequence whilst watching for hidden column
@@ -982,11 +982,10 @@ public class HiddenColumns
       }
       if (foundStart)
       {
-        return new int[] { findColumnPosition(start),
-            findColumnPosition(lastvispos), fpos, lpos, firstP, lastP };
+        return new int[] { findColumnPosition(start), firstP, lastP };
       }
       // otherwise, sequence was completely hidden
-      return new int[] { visPrev, visNext, 0, 0, firstP, lastP };
+      return new int[] { visPrev, firstP, lastP };
     } finally
     {
       LOCK.readLock().unlock();