X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=tree.cpp;h=c67f03d8f064f6699c192e62184df6763576b113;hb=3e2465c16d187247ce3befd29811c2d5dfc15ee8;hp=114b4de0d6e2c408479ae8c03b65d2b1300bb9b8;hpb=af27acb766f6947c45e1eb65438d878c7ea48ef3;p=mothur.git diff --git a/tree.cpp b/tree.cpp index 114b4de..c67f03d 100644 --- a/tree.cpp +++ b/tree.cpp @@ -420,6 +420,10 @@ int Tree::populateNewTree(vector& oldtree, int node, int& index) { tree[rc].setParent(index); tree[lc].setParent(index); + tree[index].setBranchLength(oldtree[node].getBranchLength()); + tree[rc].setBranchLength(oldtree[oldtree[node].getLChild()].getBranchLength()); + tree[lc].setBranchLength(oldtree[oldtree[node].getRChild()].getBranchLength()); + return (index++); }else { //you are a leaf int indexInNewTree = globaldata->gTreemap->getIndex(oldtree[node].getName());