From 440a51fb7671e735cbf877500f4931987f23f692 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Wed, 28 Feb 2018 17:54:15 +0000 Subject: [PATCH] JAL-2924 no tooltip over null annotation positions --- src/jalview/gui/AnnotationPanel.java | 4 ++++ 1 file changed, 4 insertions(+) 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 { -- 1.7.10.2