git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ffa00ba
)
JAL-1578 fix logic for showing score when no description present
author
Jim Procter
<jprocter@dundee.ac.uk>
Wed, 26 Nov 2014 14:47:54 +0000
(14:47 +0000)
committer
Jim Procter
<jprocter@dundee.ac.uk>
Wed, 26 Nov 2014 14:47:54 +0000
(14:47 +0000)
src/jalview/gui/AnnotationLabels.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AnnotationLabels.java
b/src/jalview/gui/AnnotationLabels.java
index
0a3423e
..
6e8417f
100755
(executable)
--- a/
src/jalview/gui/AnnotationLabels.java
+++ b/
src/jalview/gui/AnnotationLabels.java
@@
-493,14
+493,14
@@
public class AnnotationLabels extends JPanel implements MouseListener,
{
// begin the tooltip's html fragment
desc.append("<html>");
{
// begin the tooltip's html fragment
desc.append("<html>");
+ if (aa.hasScore())
+ {
+ // TODO: limit precision of score to avoid noise from imprecise
+ // doubles
+ // (64.7 becomes 64.7+/some tiny value).
+ desc.append(" Score: " + aa.score);
+ }
}
}
- if (aa.hasScore())
- {
- // TODO: limit precision of score to avoid noise from imprecise doubles
- // (64.7 becomes 64.7+/some tiny value).
- desc.append(" Score: " + aa.score);
- }
-
if (desc.length() > 6)
{
desc.append("</html>");
if (desc.length() > 6)
{
desc.append("</html>");
@@
-511,7
+511,6
@@
public class AnnotationLabels extends JPanel implements MouseListener,
this.setToolTipText(null);
}
}
this.setToolTipText(null);
}
}
-
}
/**
}
/**