From f0fab8d696fa0cbeb7409b3269360e618b96f174 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Mon, 1 Dec 2014 16:55:02 +0000 Subject: [PATCH] JAL-795 hack to ignore black colour in annotation element. --- src/jalview/schemes/AnnotationColourGradient.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/jalview/schemes/AnnotationColourGradient.java b/src/jalview/schemes/AnnotationColourGradient.java index 3cada8b..efad430 100755 --- a/src/jalview/schemes/AnnotationColourGradient.java +++ b/src/jalview/schemes/AnnotationColourGradient.java @@ -286,7 +286,8 @@ public class AnnotationColourGradient extends FollowerColourScheme || (annotationThreshold != null && (aboveAnnotationThreshold == ABOVE_THRESHOLD ? aj.value >= annotationThreshold.value : aj.value <= annotationThreshold.value))) { - if (predefinedColours && aj.colour != null) + if (predefinedColours && aj.colour != null + && !aj.colour.equals(Color.black)) { currentColour = aj.colour; } -- 1.7.10.2