From 3da861b096b63333831a2d77a103d261814c81a1 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 10 May 2006 12:55:17 +0000 Subject: [PATCH] Changes case to end of alignment --- src/jalview/datamodel/Sequence.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/jalview/datamodel/Sequence.java b/src/jalview/datamodel/Sequence.java index 6873f52..290cdfc 100755 --- a/src/jalview/datamodel/Sequence.java +++ b/src/jalview/datamodel/Sequence.java @@ -643,8 +643,8 @@ public class Sequence implements SequenceI { StringBuffer newSeq = new StringBuffer(); - if(end>=sequence.length()) - end = sequence.length()-1; + if(end>sequence.length()) + end = sequence.length(); if (start > 0) { @@ -666,8 +666,8 @@ public class Sequence implements SequenceI { StringBuffer newSeq = new StringBuffer(); - if(end>=sequence.length()) - end = sequence.length()-1; + if(end>sequence.length()) + end = sequence.length(); if (start > 0) { -- 1.7.10.2