\r
public Color findColour(String s, int j)\r
{\r
-\r
- if(cons2.length<=j)\r
- return currentColour;\r
+ Color currentColour;\r
\r
\r
- if ( (threshold != 0) && !aboveThreshold(s, j))\r
+ if ( cons2.length<=j || (threshold != 0 && !aboveThreshold(s, j)))\r
{\r
return Color.white;\r
}\r
}\r
\r
if(conservationColouring)\r
- applyConservation(j);\r
+ applyConservation(currentColour, j);\r
\r
return currentColour;\r
}\r