JAL-2512 And applet
authorkiramt <k.mourao@dundee.ac.uk>
Mon, 8 May 2017 07:59:46 +0000 (08:59 +0100)
committerkiramt <k.mourao@dundee.ac.uk>
Mon, 8 May 2017 07:59:46 +0000 (08:59 +0100)
src/jalview/appletgui/SequenceRenderer.java

index 78ed4a3..38031e4 100755 (executable)
@@ -115,7 +115,7 @@ public class SequenceRenderer implements jalview.api.SequenceRenderer
 
   void getBoxColour(ResidueShaderI shader, SequenceI seq, int i)
   {
-    if (shader != null)
+    if (shader.getColourScheme() != null)
     {
       resBoxColour = shader.findColour(seq.getCharAt(i), i, seq);
     }