fixed bootstrap value rendering to occur only when non-negative bootstrap is attached...
authorjprocter <Jim Procter>
Sat, 27 Oct 2007 13:26:47 +0000 (13:26 +0000)
committerjprocter <Jim Procter>
Sat, 27 Oct 2007 13:26:47 +0000 (13:26 +0000)
src/jalview/appletgui/TreeCanvas.java

index dd062d3..08a2550 100755 (executable)
@@ -159,11 +159,15 @@ public class TreeCanvas
       }
       if (showBootstrap)
       {
-        if (showDistances)
-        {
-          nodeLabel = nodeLabel + " : ";
+        int btstrap = node.getBootstrap();
+        if (btstrap>-1)
+        { 
+          if (showDistances)
+          {
+            nodeLabel = nodeLabel + " : ";
+          }
+          nodeLabel = nodeLabel + String.valueOf(node.getBootstrap());
         }
-        nodeLabel = nodeLabel + String.valueOf(node.getBootstrap());
       }
       if (!nodeLabel.equals(""))
       {
@@ -237,12 +241,15 @@ public class TreeCanvas
 
       if (showBootstrap)
       {
-        if (showDistances)
-        {
-          nodeLabel = nodeLabel + " : ";
+        int btstrap = node.getBootstrap();
+        if (btstrap>-1)
+        { 
+          if (showDistances)
+          {
+            nodeLabel = nodeLabel + " : ";
+          }
+          nodeLabel = nodeLabel + String.valueOf(node.getBootstrap());
         }
-
-        nodeLabel = nodeLabel + String.valueOf(node.bootstrap);
       }
 
       if (!nodeLabel.equals(""))