Commit a788e7ff authored by Zack Galbreath's avatar Zack Galbreath

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
...@@ -353,7 +353,7 @@ void vtkNewickTreeReader::CountNodes(char * const buffer, vtkIdType *numNodes) ...@@ -353,7 +353,7 @@ void vtkNewickTreeReader::CountNodes(char * const buffer, vtkIdType *numNodes)
} }
else if (*current != ';' && *current != '\0') else if (*current != ';' && *current != '\0')
{ {
while (*current != ':') while (*current != ':' && *(current+1) != ';' && *(current+1) != '\0')
{ {
current++; current++;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment