JAL-2924 no tooltip over null annotation positions
[jalview.git] / src / jalview / gui / AnnotationPanel.java
index 71cdc9c..260b771 100755 (executable)
@@ -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
     {