Commit 270a07c0 authored by Mathieu Westphal's avatar Mathieu Westphal

Correcting a potential segfault with MaskPoint

parent 31c937e2
......@@ -340,6 +340,12 @@ int vtkTemporalPathLineFilter::RequestData(
}
double CurrentTimeStep = timeStep;
if (this->MaskPoints < 1)
{
vtkWarningMacro("MaskPoints value should be >= 1. Using 1 instead.");
this->MaskPoints = 1;
}
//
// Ids
//
......
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