Commit 48e17aa0 authored by Sebastien Barre's avatar Sebastien Barre
Browse files

BUG: fix, do not render if we have no input. Usually this would not be a...

BUG: fix, do not render if we have no input. Usually this would not be a problem but with the new pipeline, if one end is loose, we have a problem. Thanks to Prabhu for spotting it.
parent d7ae1220
......@@ -26,7 +26,7 @@
#include "vtkRenderWindowInteractor.h"
#include "vtkRenderer.h"
vtkCxxRevisionMacro(vtkImageViewer2, "1.31");
vtkCxxRevisionMacro(vtkImageViewer2, "1.32");
vtkStandardNewMacro(vtkImageViewer2);
//----------------------------------------------------------------------------
......@@ -681,7 +681,10 @@ void vtkImageViewer2::Render()
this->FirstRender = 0;
}
}
this->RenderWindow->Render();
if (this->GetInput())
{
this->RenderWindow->Render();
}
}
//----------------------------------------------------------------------------
......
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