JAL-2588 don’t test char==gap until we know the shader won’t colour gaps itself feature/2588
authorJim Procter <jprocter@issues.jalview.org>
Mon, 21 Aug 2017 13:22:52 +0000 (14:22 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Mon, 21 Aug 2017 13:22:52 +0000 (14:22 +0100)
.ant-targets-build.xml [new file with mode: 0644]
src/jalview/renderer/OverviewResColourFinder.java

diff --git a/.ant-targets-build.xml b/.ant-targets-build.xml
new file mode 100644 (file)
index 0000000..15432a1
--- /dev/null
@@ -0,0 +1,31 @@
+build
+buildPropertiesFile
+buildTests
+buildextclients
+buildindices
+castorbinding
+clean
+compileApplet
+distclean
+help
+init
+linkcheck
+makeApplet
+makedist
+makefulldist
+obfuscate
+packageApplet
+prepare
+prepareTests
+preparejnlp
+prepubapplet_1
+pubapplet
+runenv
+signApplet
+sourcedist
+sourcedoc
+sourcescrub
+testclean
+testng
+usage
+writejnlpf
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;
       }