end of seq adjustments
authoramwaterhouse <Andrew Waterhouse>
Fri, 11 Feb 2005 12:43:58 +0000 (12:43 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 11 Feb 2005 12:43:58 +0000 (12:43 +0000)
src/jalview/datamodel/Sequence.java

index ebdff92..691a1f1 100755 (executable)
@@ -139,8 +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
+    if(end>sequence.length())\r
+      end = sequence.length();\r
     return this.sequence.substring(start,end);\r
   }\r
 \r