From 45709c18006e1fba002a9234a5875c986ae98996 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Thu, 10 May 2007 08:08:47 +0000 Subject: [PATCH] Keep record of last tooltip --- src/jalview/gui/SeqPanel.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/jalview/gui/SeqPanel.java b/src/jalview/gui/SeqPanel.java index aaad2ae..893ce2c 100755 --- a/src/jalview/gui/SeqPanel.java +++ b/src/jalview/gui/SeqPanel.java @@ -771,11 +771,14 @@ public class SeqPanel else { tooltipText.append(""); - setToolTipText(tooltipText.toString()); + if (lastTooltip == null || !lastTooltip.equals(tooltipText.toString())) + setToolTipText(tooltipText.toString()); + + lastTooltip = tooltipText.toString(); } - // else - // setToolTipText(null); + } + String lastTooltip; void setStatusMessage(SequenceI sequence, int res, int seq) { -- 1.7.10.2