JAL-2588 don’t test char==gap until we know the shader won’t colour gaps itself
[jalview.git] / src / jalview / renderer / OverviewResColourFinder.java
index ec638a7..c591f54 100644 (file)
@@ -41,8 +41,8 @@ public class OverviewResColourFinder extends ResidueColourFinder
     // settings
     if (shader.getColourScheme() != null)
     {
-      if (Comparison.isGap(currentChar)
-              && !shader.getColourScheme().hasGapColour())
+      if (!shader.getColourScheme().hasGapColour()
+              && Comparison.isGap(currentChar))
       {
         resBoxColour = GAP_COLOUR;
       }