JAL-2512 Fix to show non-gap positions in None colour scheme
authorkiramt <k.mourao@dundee.ac.uk>
Mon, 8 May 2017 07:54:41 +0000 (08:54 +0100)
committerkiramt <k.mourao@dundee.ac.uk>
Mon, 8 May 2017 07:54:41 +0000 (08:54 +0100)
src/jalview/gui/SequenceRenderer.java

index 1c0420d..91c3f0f 100755 (executable)
@@ -137,7 +137,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);