bug fix for unaligned sequence sets and clustal colours (obviated by
authorjprocter <Jim Procter>
Wed, 23 Feb 2005 15:48:40 +0000 (15:48 +0000)
committerjprocter <Jim Procter>
Wed, 23 Feb 2005 15:48:40 +0000 (15:48 +0000)
'aligned' test).

src/jalview/schemes/ClustalxColourScheme.java

index d4789e6..7faa9a3 100755 (executable)
@@ -61,7 +61,8 @@ public class ClustalxColourScheme implements ColourSchemeI
       while(j < seqs.size())\r
       {\r
         seq = ( (SequenceI) seqs.get(j)).getSequence();\r
-        for (i = start; i <= end; i++)\r
+        int end_j = seq.length()-1;\r
+        for (i = start; i <= end_j; i++)\r
         {\r
           if(seq.length()-1<i)\r
             res = 23;\r