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

fix Newick reader for named root vertex

Before this commit, the vtkNewickTreeReader would trash if you attempted
to load a file where the root vertex of the tree was named.

Change-Id: I1d1f282fc586a4a0b5569bb5d2e065dfe6a8aa7e
parent a7d31f98
Branches
Tags
No related merge requests found
......@@ -353,7 +353,7 @@ void vtkNewickTreeReader::CountNodes(char * const buffer, vtkIdType *numNodes)
}
else if (*current != ';' && *current != '\0')
{
while (*current != ':')
while (*current != ':' && *(current+1) != ';' && *(current+1) != '\0')
{
current++;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment