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-4235 JAL-3599 Try and report Eclipse Product Version for jalviewjsTranspile....
[jalview.git]
/
src
/
jalview
/
datamodel
/
HiddenSequences.java
diff --git
a/src/jalview/datamodel/HiddenSequences.java
b/src/jalview/datamodel/HiddenSequences.java
index
98e9694
..
b5efeb4
100755
(executable)
--- a/
src/jalview/datamodel/HiddenSequences.java
+++ b/
src/jalview/datamodel/HiddenSequences.java
@@
-222,8
+222,8
@@
public class HiddenSequences
end = hiddenSequences.length - 1;
}
end = hiddenSequences.length - 1;
}
- List<SequenceI> asequences;
- synchronized (asequences = alignment.getSequences())
+ List<SequenceI> asequences = alignment.getSequences();
+ synchronized (asequences)
{
for (int index = end; index > start; index--)
{
{
for (int index = end; index > start; index--)
{
@@
-239,8
+239,8
@@
public class HiddenSequences
}
else
{
}
else
{
- System.out.println(seq.getName()
- + " has been deleted whilst hidden");
+ System.out.println(
+ seq.getName() + " has been deleted whilst hidden");
}
}
}
}
}
}
@@
-312,7
+312,7
@@
public class HiddenSequences
return startRow - visibleDistance;
}
return startRow - visibleDistance;
}
- int index = startRow;
+ int index = Math.min(startRow, hiddenSequences.length - 1);
int count = 0;
while ((index > -1) && (count < visibleDistance))
{
int count = 0;
while ((index > -1) && (count < visibleDistance))
{