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