X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fanalysis%2FTreeModel.java;fp=src%2Fjalview%2Fanalysis%2FTreeModel.java;h=ce79a650c4b8b8e6f781a3caef8ef6d4d6ebe048;hb=67f21ba986462faaa66c606709463fff6c29c116;hp=90fe089809e6c4ac75af13d008cba32bfa68b7f6;hpb=5d225e1798ef42d0c49784f9ef24e76e2d0cf014;p=jalview.git diff --git a/src/jalview/analysis/TreeModel.java b/src/jalview/analysis/TreeModel.java index 90fe089..ce79a65 100644 --- a/src/jalview/analysis/TreeModel.java +++ b/src/jalview/analysis/TreeModel.java @@ -353,6 +353,7 @@ public class TreeModel if ((nd.left() == null) && (nd.right() == null)) { + // TODO FIX FOR COLUMN TREES jalview.bin.Console.outPrintln("Leaf = " + ((SequenceI) nd.element()).getName()); jalview.bin.Console.outPrintln("Dist " + nd.dist); jalview.bin.Console.outPrintln("Boot " + nd.getBootstrap()); @@ -430,7 +431,7 @@ public class TreeModel if ((nd.left() == null) && (nd.right() == null)) { - nd.height = ((BinaryNode) nd.parent()).height + nd.dist; + nd.height = nd.parent().height + nd.dist; if (nd.height > maxheight) { @@ -445,7 +446,7 @@ public class TreeModel { if (nd.parent() != null) { - nd.height = ((BinaryNode) nd.parent()).height + nd.dist; + nd.height = nd.parent().height + nd.dist; } else {