JAL-3596 change redacted
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Sun, 12 Apr 2020 14:43:21 +0000 (15:43 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Sun, 12 Apr 2020 14:43:21 +0000 (15:43 +0100)
src/jalview/renderer/seqfeatures/FeatureRenderer.java

index 7a92a88..2186d4a 100644 (file)
@@ -112,13 +112,14 @@ public class FeatureRenderer extends FeatureRendererModel
         continue;
       }
 
-      if (av.getShowText())
-      {
-        g.setColor(Color.white);
-        int charOffset = (charWidth - fm.charWidth(s)) / 2;
-        g.drawString(String.valueOf(s),
-                charOffset + (charWidth * (i - start)), pady);
-      }
+      /*
+       * JAL-3045 text is always drawn over features, even if
+       * 'Show Text' is unchecked in the format menu
+       */
+      g.setColor(Color.white);
+      int charOffset = (charWidth - fm.charWidth(s)) / 2;
+      g.drawString(String.valueOf(s),
+              charOffset + (charWidth * (i - start)), pady);
     }
     return true;
   }