CurrentColour must not be accessed by multiple sequence renderers
[jalview.git] / src / jalview / schemes / UserColourScheme.java
index 3349283..9d61279 100755 (executable)
@@ -188,6 +188,7 @@ public class UserColourScheme
 \r
   public Color findColour(String s, int j)\r
   {\r
+      Color currentColour;\r
       int index = ResidueProperties.aaIndex[s.charAt(0)];\r
 \r
       if ((threshold == 0) || aboveThreshold(ResidueProperties.aa[index], j))\r
@@ -203,7 +204,7 @@ public class UserColourScheme
       }\r
 \r
       if(conservationColouring)\r
-        applyConservation(j);\r
+        applyConservation(currentColour, j);\r
 \r
 \r
       return currentColour;\r