Must check consensus length if autocalculate off
authoramwaterhouse <Andrew Waterhouse>
Fri, 7 Apr 2006 08:23:34 +0000 (08:23 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 7 Apr 2006 08:23:34 +0000 (08:23 +0000)
src/jalview/schemes/Blosum62ColourScheme.java

index 6e91e0b..2c0836d 100755 (executable)
@@ -39,7 +39,7 @@ public class Blosum62ColourScheme
     }\r
 \r
 \r
-    if ( (threshold != 0) && !aboveThreshold(s, j))\r
+    if ( j>=consensus.length || (threshold != 0 && !aboveThreshold(s, j) ))\r
     {\r
       return Color.white;\r
     }\r