Commit a771d8de authored by Ken Martin's avatar Ken Martin
Browse files

fix segfault

parent df86f69e
......@@ -15,7 +15,7 @@
#include "vtkTableExtentTranslator.h"
#include "vtkObjectFactory.h"
vtkCxxRevisionMacro(vtkTableExtentTranslator, "1.7");
vtkCxxRevisionMacro(vtkTableExtentTranslator, "1.8");
vtkStandardNewMacro(vtkTableExtentTranslator);
//----------------------------------------------------------------------------
......@@ -181,6 +181,7 @@ void vtkTableExtentTranslator::SetPieceAvailable(int piece, int available)
(piece >= this->NumberOfPiecesInTable))
{
vtkErrorMacro("Piece " << piece << " does not exist.");
return;
}
this->PieceAvailable[piece] = available?1:0;
}
......
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