git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d046cfb
)
JAL-2759 Move isVisible to use cursor
author
kiramt
<k.mourao@dundee.ac.uk>
Fri, 17 Nov 2017 10:41:02 +0000
(10:41 +0000)
committer
kiramt
<k.mourao@dundee.ac.uk>
Fri, 17 Nov 2017 10:41:02 +0000
(10:41 +0000)
src/jalview/datamodel/HiddenColumns.java
patch
|
blob
|
history
diff --git
a/src/jalview/datamodel/HiddenColumns.java
b/src/jalview/datamodel/HiddenColumns.java
index
4c3560e
..
69d2ac4
100644
(file)
--- a/
src/jalview/datamodel/HiddenColumns.java
+++ b/
src/jalview/datamodel/HiddenColumns.java
@@
-593,18
+593,17
@@
public class HiddenColumns
{
LOCK.readLock().lock();
- Iterator<int[]> it = new RegionsIterator(column, column,
- hiddenColumns, cursor);
- while (it.hasNext())
+ int regionindex = cursor.findRegionForColumn(column);
+ if (regionindex > -1 && regionindex < hiddenColumns.size())
{
- int[] region = it.next();
+ int[] region = hiddenColumns.get(regionindex);
if (column >= region[0] && column <= region[1])
{
return false;
}
}
-
return true;
+
} finally
{
LOCK.readLock().unlock();