From 1c1f44c47bfd8151d846928eda2d95aeff6f8e92 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Fri, 3 Feb 2006 17:47:55 +0000 Subject: [PATCH] Make java 1.1 compatible --- src/jalview/schemes/AnnotationColourGradient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/jalview/schemes/AnnotationColourGradient.java b/src/jalview/schemes/AnnotationColourGradient.java index d91ced5..bc44559 100755 --- a/src/jalview/schemes/AnnotationColourGradient.java +++ b/src/jalview/schemes/AnnotationColourGradient.java @@ -72,7 +72,7 @@ public class AnnotationColourGradient extends ResidueColourScheme public Color findColour(String n) { System.out.println("AnnotationColourGradient findColour(string)"); - return Color.RED; + return Color.red; } /** @@ -87,7 +87,7 @@ public class AnnotationColourGradient extends ResidueColourScheme { if ((threshold == 0) || aboveThreshold(n, j)) { - if(annotation.annotations[j]==null) + if( j+1>annotation.annotations.length || annotation.annotations[j]==null) currentColour = Color.white; else { -- 1.7.10.2