From 47984e1d3e480c5c8099aeb9481c87936ae12eb4 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 14 Jan 2005 15:44:37 +0000 Subject: [PATCH] Return color.white if a gap char is detected --- src/jalview/schemes/ClustalxColourScheme.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jalview/schemes/ClustalxColourScheme.java b/src/jalview/schemes/ClustalxColourScheme.java index 3a91018..128929c 100755 --- a/src/jalview/schemes/ClustalxColourScheme.java +++ b/src/jalview/schemes/ClustalxColourScheme.java @@ -201,6 +201,9 @@ public class ClustalxColourScheme implements ColourSchemeI int i = Integer.parseInt( ResidueProperties.aaHash.get(s).toString() ); + if(i>22) // ie -, ., or space + return Color.white; + return ResidueColour[i].c; } -- 1.7.10.2