JAL-795 hack to ignore black colour in annotation element.
authorJim Procter <jprocter@dundee.ac.uk>
Mon, 1 Dec 2014 16:55:02 +0000 (16:55 +0000)
committerJim Procter <jprocter@dundee.ac.uk>
Mon, 1 Dec 2014 16:55:02 +0000 (16:55 +0000)
src/jalview/schemes/AnnotationColourGradient.java

index 3cada8b..efad430 100755 (executable)
@@ -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;
           }