From e966ed9e5fb77a7e698344d4a581c3d7450eaf0e Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Thu, 31 May 2018 17:20:31 +0100 Subject: [PATCH] JAL-1958 use the annotation score for the sequence being coloured ! --- 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 00744c0..7133f13 100755 --- a/src/jalview/schemes/AnnotationColourGradient.java +++ b/src/jalview/schemes/AnnotationColourGradient.java @@ -484,12 +484,12 @@ public class AnnotationColourGradient extends FollowerColourScheme if (perLineScore) { trans = (int) ((1f - range) * midtr); - range = (float) ((annotation.score - plmin) / (plmax - aamin)); + range = (float) ((ann.score - plmin) / (plmax - aamin)); } int dr = (int) (redRange * range + redMin), dg = (int) (greenRange * range + greenMin), db = (int) (blueRange * range + blueMin); - if (annotation.score == annotation.score && positionToTransparency) + if (ann.score == ann.score && positionToTransparency) { return new Color(Math.min(dr + trans, midtr), Math.min(dg + trans, midtr), Math.min(db + trans, midtr)); -- 1.7.10.2