Skip to content
Snippets Groups Projects
Commit 8c745664 authored by Zack Galbreath's avatar Zack Galbreath
Browse files

Fix invalid read in vtkNewickTreeReader

This defect crept in during my recent work to improve the
vtkNewickTreeReader's performance while reading large trees.

Change-Id: I1a575adeca304a3a0b94aa3a7448bf6327ca6aea
parent a7d31f98
Branches
Tags
No related merge requests found
......@@ -152,8 +152,8 @@ int vtkNewickTreeReader:: ReadNewickTree( char * const buffer, vtkTree & tree)
if (parent >= 0)
{
weight = weights->GetValue(tree.GetEdgeId(parent, vertex));
weight += nodeWeights->GetValue(parent);
}
weight += nodeWeights->GetValue(parent);
if (weight > maxWeight)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment