JAL-2588 Consistent gap colour when in None colour scheme
[jalview.git] / src / jalview / gui / SequenceRenderer.java
index 36825ea..51b1a3a 100755 (executable)
@@ -140,10 +140,17 @@ public class SequenceRenderer implements jalview.api.SequenceRenderer
   {
     if (shader.getColourScheme() != null)
     {
-      resBoxColour = shader.findColour(seq.getCharAt(i),
+      if (forOverview && Comparison.isGap(seq.getCharAt(i)))
+      {
+        resBoxColour = Color.lightGray;
+      }
+      else
+      {
+        resBoxColour = shader.findColour(seq.getCharAt(i),
               i, seq);
+      }
     }
-    else if (forOverview && !Comparison.isGap(seq.getCharAt(i)))
+    else if (forOverview && Comparison.isGap(seq.getCharAt(i)))
     {
       resBoxColour = Color.lightGray;
     }