From: amwaterhouse Date: Fri, 7 Apr 2006 08:23:34 +0000 (+0000) Subject: Must check consensus length if autocalculate off X-Git-Tag: Release_2_08~45 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=b0c3862ae342f88419e5e685de2b56f060358c05;p=jalview.git Must check consensus length if autocalculate off --- diff --git a/src/jalview/schemes/Blosum62ColourScheme.java b/src/jalview/schemes/Blosum62ColourScheme.java index 6e91e0b..2c0836d 100755 --- a/src/jalview/schemes/Blosum62ColourScheme.java +++ b/src/jalview/schemes/Blosum62ColourScheme.java @@ -39,7 +39,7 @@ public class Blosum62ColourScheme } - if ( (threshold != 0) && !aboveThreshold(s, j)) + if ( j>=consensus.length || (threshold != 0 && !aboveThreshold(s, j) )) { return Color.white; }