X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fschemes%2FPIDColourScheme.java;h=66f180be4c72186c75934d0e2cb817a4dd865b8f;hb=e378e950e3f2611dbf0dfeb2ffae60c37f7adcbe;hp=3d1c18b7f5c726482b8e22efd71b6fde3fa9690d;hpb=83b55697263efc7b0c660eba6ea7091f6904257d;p=jalview.git diff --git a/src/jalview/schemes/PIDColourScheme.java b/src/jalview/schemes/PIDColourScheme.java index 3d1c18b..66f180b 100755 --- a/src/jalview/schemes/PIDColourScheme.java +++ b/src/jalview/schemes/PIDColourScheme.java @@ -49,9 +49,7 @@ public class PIDColourScheme return Color.white; } - - - Color c = Color.white; + currentColour = Color.white; double sc = 0; @@ -66,7 +64,7 @@ public class PIDColourScheme { if (sc > thresholds[i]) { - c = pidColours[i]; + currentColour = pidColours[i]; break; } @@ -74,6 +72,9 @@ public class PIDColourScheme } } - return c; + if(conservationColouring) + applyConservation(j); + + return currentColour; } }