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=440a51fb7671e735cbf877500f4931987f23f692;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 {