Skip to content
Snippets Groups Projects
Commit 4e276502 authored by David Gobbi's avatar David Gobbi
Browse files

Minor fix to vtkPolyLineWidget representation

Insert points to ensure points are properly sized.
parent 007fe299
No related branches found
No related tags found
No related merge requests found
......@@ -203,7 +203,7 @@ void vtkPolyLineRepresentation::ReconfigureHandles(int npts)
for (vtkIdType i = prevNumPoints; i < npts; ++i)
{
double pt[3] = { 0.0, 0.0, 0.0 };
this->PolyLineSource->GetPoints()->SetPoint(i, pt);
this->PolyLineSource->GetPoints()->InsertPoint(i, pt);
}
}
......
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