From: amwaterhouse Date: Fri, 11 Feb 2005 12:43:58 +0000 (+0000) Subject: end of seq adjustments X-Git-Tag: Release_2_0~664 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=df36af4b025b8435e31ae060a939e9c855e03506;p=jalview.git end of seq adjustments --- diff --git a/src/jalview/datamodel/Sequence.java b/src/jalview/datamodel/Sequence.java index ebdff92..691a1f1 100755 --- a/src/jalview/datamodel/Sequence.java +++ b/src/jalview/datamodel/Sequence.java @@ -139,8 +139,8 @@ public class Sequence implements SequenceI return this.sequence; } public String getSequence(int start,int end) { - if(end>=sequence.length()) - end = sequence.length()-1; + if(end>sequence.length()) + end = sequence.length(); return this.sequence.substring(start,end); }