From: gmungoc Date: Sun, 12 Apr 2020 14:43:21 +0000 (+0100) Subject: JAL-3596 change redacted X-Git-Tag: Develop-2_11_2_0-d20201215~39 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e9a1285c3e0df3505d85121d84c2d33d899820f2;p=jalview.git JAL-3596 change redacted --- diff --git a/src/jalview/renderer/seqfeatures/FeatureRenderer.java b/src/jalview/renderer/seqfeatures/FeatureRenderer.java index 7a92a88..2186d4a 100644 --- a/src/jalview/renderer/seqfeatures/FeatureRenderer.java +++ b/src/jalview/renderer/seqfeatures/FeatureRenderer.java @@ -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; }