Commit 63b5eede authored by Charl Botha's avatar Charl Botha
Browse files

ERR: Fixed nasty bug. vtkExtractVOI was calling AllocateScalars() *as

well as* CopyAllocate() (or PassThrough()) later on.  This meant that
subsequent filters saw 2 (two) arrays, one unnamed and empty, the other
representing the real data.  The unnamed array was able to crash
at least the vtkStructuredPointsWriter and any of the vtkXMLWriters.
parent b77a34d6
......@@ -19,7 +19,7 @@
#include "vtkObjectFactory.h"
#include "vtkPointData.h"
vtkCxxRevisionMacro(vtkExtractVOI, "1.36");
vtkCxxRevisionMacro(vtkExtractVOI, "1.37");
......@@ -133,7 +133,6 @@ void vtkExtractVOI::ExecuteData(vtkDataObject *)
vtkCellData *cd=input->GetCellData();
vtkImageData *output = this->GetOutput();
vtkPointData *outPD=output->GetPointData();
vtkCellData *outCD=output->GetCellData();
int i, j, k, dims[3], outDims[3], voi[6], dim, idx, newIdx;
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