Menus close properly, toolips restored
authorhansonr <hansonr@STO24954W.ad.stolaf.edu>
Wed, 23 Jan 2019 21:19:59 +0000 (15:19 -0600)
committerhansonr <hansonr@STO24954W.ad.stolaf.edu>
Wed, 23 Jan 2019 21:19:59 +0000 (15:19 -0600)
minor bug in SeqPanel I introduced some time ago.

src/jalview/gui/SeqPanel.java
swingjs/SwingJS-site.zip
swingjs/timestamp
swingjs/ver/3.2.4/SwingJS-site.zip
swingjs/ver/3.2.4/timestamp

index 0a66114..5e117ca 100644 (file)
@@ -824,7 +824,7 @@ public class SeqPanel extends JPanel
       mouseOverSequence(sequence, column, pos);
     }
 
-    tooltipText.setLength(6); // Cuts the buffer back to <html>
+    tooltipText.setLength(0);
 
     SequenceGroup[] groups = av.getAlignment().findAllGroups(sequence);
     if (groups != null)
@@ -860,7 +860,7 @@ public class SeqPanel extends JPanel
       seqARep.appendFeatures(tooltipText, pos, features,
               this.ap.getSeqPanel().seqCanvas.fr);
     }
-    if (tooltipText.length() == 6) // <html>
+    if (tooltipText.length() == 0) // <html>
     {
       setToolTipText(null);
       lastTooltip = null;
@@ -877,8 +877,7 @@ public class SeqPanel extends JPanel
       {
         formattedTooltipText = JvSwingUtils.wrapTooltip(true,
                 textString);
-        setToolTipText(formattedTooltipText);
-        
+        setToolTipText(formattedTooltipText);        
         lastTooltip = textString;
       }
     }
index 1562774..61e7c2c 100644 (file)
Binary files a/swingjs/SwingJS-site.zip and b/swingjs/SwingJS-site.zip differ
index b2e806a..b0c15a3 100644 (file)
@@ -1 +1 @@
-20190123102751 
+20190123151510 
index 1562774..61e7c2c 100644 (file)
Binary files a/swingjs/ver/3.2.4/SwingJS-site.zip and b/swingjs/ver/3.2.4/SwingJS-site.zip differ
index b2e806a..b0c15a3 100644 (file)
@@ -1 +1 @@
-20190123102751 
+20190123151510