From: gmungoc Date: Wed, 28 Feb 2018 17:54:15 +0000 (+0000) Subject: JAL-2924 no tooltip over null annotation positions X-Git-Tag: Release_2_10_4~51^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fbug%2FJAL-2924nullTooltip;p=jalview.git JAL-2924 no tooltip over null annotation positions --- diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index 71cdc9c..260b771 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -782,6 +782,10 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI, { this.setToolTipText(JvSwingUtils.wrapTooltip(true, description)); } + else + { + this.setToolTipText(null); // no tooltip if null or empty description + } } else {