Merge branch 'bug/JAL-2924nullTooltip' into releases/Release_2_10_4_Branch
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 7 Mar 2018 11:30:09 +0000 (11:30 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Wed, 7 Mar 2018 11:30:09 +0000 (11:30 +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
     {