git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-2674 fix up interface of locateVisibleBoundsOfSequence
[jalview.git]
/
src
/
jalview
/
datamodel
/
HiddenColumns.java
diff --git
a/src/jalview/datamodel/HiddenColumns.java
b/src/jalview/datamodel/HiddenColumns.java
index
c0a43ee
..
305a6f1
100644
(file)
--- a/
src/jalview/datamodel/HiddenColumns.java
+++ b/
src/jalview/datamodel/HiddenColumns.java
@@
-923,7
+923,7
@@
public class HiddenColumns
{
int ifpos = seq.findIndex(fpos) - 1;
int ilpos = seq.findIndex(lpos) - 1;
{
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
}
// Simply walk along the sequence whilst watching for hidden column
@@
-982,11
+982,10
@@
public class HiddenColumns
}
if (foundStart)
{
}
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
}
// otherwise, sequence was completely hidden
- return new int[] { visPrev, visNext, 0, 0, firstP, lastP };
+ return new int[] { visPrev, firstP, lastP };
} finally
{
LOCK.readLock().unlock();
} finally
{
LOCK.readLock().unlock();