Commit ef33ed8d authored by Will Schroeder's avatar Will Schroeder
Browse files

ERR: FIxed colors reallocation bug.

parent d7e7f9e1
......@@ -117,8 +117,7 @@ void vtkPolyMapper::Render(vtkRenderer *ren)
{
int numColors=this->Colors->GetNumberOfColors();
colors = this->Colors;
if ( numColors < numPts ) colors->Squeeze();
else if ( numColors > numPts ) colors->Allocate(numPts);
if ( numColors < numPts ) colors->Allocate(numPts);
}
this->LookupTable->SetTableRange(this->ScalarRange);
......
Supports Markdown
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