Commit 1ed6d94e authored by Ken Martin's avatar Ken Martin
Browse files

fix for empoty algorithm

parent a80f6c72
......@@ -38,7 +38,7 @@
#include <vtkstd/vector>
vtkCxxRevisionMacro(vtkDemandDrivenPipeline, "1.13");
vtkCxxRevisionMacro(vtkDemandDrivenPipeline, "1.14");
vtkStandardNewMacro(vtkDemandDrivenPipeline);
//----------------------------------------------------------------------------
......@@ -956,11 +956,16 @@ vtkDataObject* vtkDemandDrivenPipeline::NewDataObject(const char* type)
void vtkDemandDrivenPipeline::ReportReferences(vtkGarbageCollector* collector)
{
this->Superclass::ReportReferences(collector);
for(int i=0; i < this->Algorithm->GetNumberOfOutputPorts(); ++i)
// if we have an algorithm then report our references to its data objects
if (this->Algorithm)
{
collector->ReportReference(
for(int i=0; i < this->Algorithm->GetNumberOfOutputPorts(); ++i)
{
collector->ReportReference(
this->GetOutputInformation(i)->Get(vtkDataObject::DATA_OBJECT()),
"AlgorithmOutput");
}
}
}
......
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