From df36af4b025b8435e31ae060a939e9c855e03506 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 11 Feb 2005 12:43:58 +0000 Subject: [PATCH] end of seq adjustments --- src/jalview/datamodel/Sequence.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } -- 1.7.10.2