From: Jim Procter Date: Mon, 1 Dec 2014 16:55:02 +0000 (+0000) Subject: JAL-795 hack to ignore black colour in annotation element. X-Git-Tag: Release_2_8_2~1^2~4^2~5 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=f0fab8d696fa0cbeb7409b3269360e618b96f174;p=jalview.git JAL-795 hack to ignore black colour in annotation element. --- 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; }