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:
323176a
)
watch out for end of seq in findposition
author
amwaterhouse
<Andrew Waterhouse>
Fri, 11 Feb 2005 11:04:31 +0000
(11:04 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Fri, 11 Feb 2005 11:04:31 +0000
(11:04 +0000)
src/jalview/datamodel/Sequence.java
patch
|
blob
|
history
diff --git
a/src/jalview/datamodel/Sequence.java
b/src/jalview/datamodel/Sequence.java
index
cf578c0
..
ebdff92
100755
(executable)
--- a/
src/jalview/datamodel/Sequence.java
+++ b/
src/jalview/datamodel/Sequence.java
@@
-184,10
+184,9
@@
public class Sequence implements SequenceI
int j = 0;
\r
int pos = start;
\r
\r
- while (j < i)
\r
+ while (j < i && j<sequence.length())
\r
{
\r
char c = sequence.charAt(j);
\r
-
\r
if (!jalview.util.Comparison.isGap((c)))
\r
pos++;
\r
\r