JAL-3011 - show score in annotation row - looks like this got lost in an automerge
authorJim Procter <jprocter@issues.jalview.org>
Thu, 31 May 2018 16:27:13 +0000 (17:27 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Thu, 31 May 2018 16:27:36 +0000 (17:27 +0100)
src/jalview/gui/AnnotationLabels.java

index b1a8aff..dc89fa3 100755 (executable)
@@ -875,14 +875,16 @@ public class AnnotationLabels extends JPanel
       {
         // 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>");