Mentions légales du service

Skip to content
Snippets Groups Projects
Commit fd83552f authored by Vincent Danjean's avatar Vincent Danjean
Browse files

Fix depth computation

git-svn-id: svn+ssh://imag/users/huron/danjean/svnroot/claire/altree/trunk@451 cf695345-040a-0410-a956-b889e835fe2e
parent 53276ce1
No related branches found
No related tags found
No related merge requests found
......@@ -678,11 +678,12 @@ sub computeTreeStructure($) {
push @leafList, $node;
}
}
if (scalar(@childNodeList) > 1) {
$depth++;
}
if (scalar(@childNodeList) > 0) {
$computeLeaf->(\@childNodeList, $depth);
my $rec_depth=$depth;
if (scalar(@childNodeList) > 1) {
$rec_depth++;
}
$computeLeaf->(\@childNodeList, $rec_depth);
}
foreach my $node (@leafList) {
push @leaf_refs, $node;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment