From: jprocter Date: Sat, 27 Oct 2007 13:26:47 +0000 (+0000) Subject: fixed bootstrap value rendering to occur only when non-negative bootstrap is attached... X-Git-Tag: Release_2_4~225 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=65ab23d6040e684f437b262cd4ccedb5044d1013;p=jalview.git fixed bootstrap value rendering to occur only when non-negative bootstrap is attached to node. --- diff --git a/src/jalview/appletgui/TreeCanvas.java b/src/jalview/appletgui/TreeCanvas.java index dd062d3..08a2550 100755 --- a/src/jalview/appletgui/TreeCanvas.java +++ b/src/jalview/appletgui/TreeCanvas.java @@ -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(""))