From 59040044f3871f203001f6fa15f0407635a3a739 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 9 Feb 2006 14:43:28 +0000 Subject: [PATCH] If conservation is zero, colour is white --- src/jalview/schemes/ResidueColourScheme.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/jalview/schemes/ResidueColourScheme.java b/src/jalview/schemes/ResidueColourScheme.java index 78ebab0..b83244d 100755 --- a/src/jalview/schemes/ResidueColourScheme.java +++ b/src/jalview/schemes/ResidueColourScheme.java @@ -229,6 +229,11 @@ public class ResidueColourScheme implements ColourSchemeI else { float t = 11 - (conservation[i] - '0'); + if(t==0) + { + currentColour = Color.white; + return; + } int red = currentColour.getRed(); int green = currentColour.getGreen(); -- 1.7.10.2