JAL-2924 no tooltip over null annotation positions bug/JAL-2924nullTooltip
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 28 Feb 2018 17:54:15 +0000 (17:54 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 28 Feb 2018 17:54:15 +0000 (17:54 +0000)
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
     {