Commit d5776b5f authored by David E. DeMarle's avatar David E. DeMarle

Fix test empty input failure.

Change-Id: I2cd7a5372e8980b760da1ee0baafa8d60b519438
parent 9b54d4c2
......@@ -796,6 +796,11 @@ void vtkVolumeRayCastSpaceLeapingImageFilter::ThreadedRequestData(
// - Get the number of independent components for which we need to keep
// track of min/max
if (!this->GetCurrentScalars())
{
return;
}
const int components = this->GetCurrentScalars()->GetNumberOfComponents();
const unsigned int nComponents = (this->GetIndependentComponents()) ? components : 1;
......
Markdown is supported
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