JAL-3032 revert change to tooltip StringBuilder length
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 28 Jan 2019 14:59:27 +0000 (14:59 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Mon, 28 Jan 2019 14:59:27 +0000 (14:59 +0000)
src/jalview/gui/SeqPanel.java

index 59f239f..e94ced2 100644 (file)
@@ -823,7 +823,7 @@ public class SeqPanel extends JPanel
       mouseOverSequence(sequence, column, pos);
     }
 
-    tooltipText.setLength(0);
+    tooltipText.setLength(6); // "<html>"
 
     SequenceGroup[] groups = av.getAlignment().findAllGroups(sequence);
     if (groups != null)
@@ -859,7 +859,7 @@ public class SeqPanel extends JPanel
       seqARep.appendFeatures(tooltipText, pos, features,
               this.ap.getSeqPanel().seqCanvas.fr);
     }
-    if (tooltipText.length() == 0) // <html>
+    if (tooltipText.length() == 6) // <html>
     {
       setToolTipText(null);
       lastTooltip = null;