CurrentColour must not be accessed by multiple sequence renderers
[jalview.git] / src / jalview / schemes / NucleotideColourScheme.java
index 6aaef7d..f36bcad 100755 (executable)
@@ -60,6 +60,7 @@ public class NucleotideColourScheme extends ResidueColourScheme
      */\r
     public Color findColour(String n, int j)\r
     {\r
+        Color currentColour;\r
         if ((threshold == 0) || aboveThreshold(n, j))\r
         {\r
             try\r
@@ -77,7 +78,7 @@ public class NucleotideColourScheme extends ResidueColourScheme
         }\r
 \r
         if(conservationColouring)\r
-         applyConservation(j);\r
+         applyConservation(currentColour, j);\r
 \r
        return currentColour;\r
     }\r