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:
a4a9f7f
)
watch end of sequence when asking for (start, end)
author
amwaterhouse
<Andrew Waterhouse>
Thu, 10 Feb 2005 18:12:50 +0000
(18:12 +0000)
committer
amwaterhouse
<Andrew Waterhouse>
Thu, 10 Feb 2005 18:12:50 +0000
(18:12 +0000)
src/jalview/datamodel/Sequence.java
patch
|
blob
|
history
diff --git
a/src/jalview/datamodel/Sequence.java
b/src/jalview/datamodel/Sequence.java
index
eceddf1
..
cf578c0
100755
(executable)
--- a/
src/jalview/datamodel/Sequence.java
+++ b/
src/jalview/datamodel/Sequence.java
@@
-139,6
+139,8
@@
public class Sequence implements SequenceI
return this.sequence;
\r
}
\r
public String getSequence(int start,int end) {
\r
+ if(end>=sequence.length())
\r
+ end = sequence.length()-1;
\r
return this.sequence.substring(start,end);
\r
}
\r
\r