From: amwaterhouse Date: Wed, 15 Nov 2006 15:47:33 +0000 (+0000) Subject: Check if groupWidth is greater than sequence width X-Git-Tag: Release_2_2~110 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=702d861516f9f04118c97f36ae4d4e08017dde68;p=jalview.git Check if groupWidth is greater than sequence width --- diff --git a/src/jalview/analysis/AAFrequency.java b/src/jalview/analysis/AAFrequency.java index f409f8c..5b9a2a4 100755 --- a/src/jalview/analysis/AAFrequency.java +++ b/src/jalview/analysis/AAFrequency.java @@ -53,6 +53,11 @@ public class AAFrequency Hashtable [] reply = new Hashtable[width]; + if(end>=width) + { + end = width-1; + } + calculate(seqs, start, end, reply); return reply;