|
@@ -348,8 +348,8 @@ void populateIrregularBins(vtkIntArray* bins, const ctkVTKHistogram* histogram)
|
|
ptr += component;
|
|
ptr += component;
|
|
for (; ptr < endPtr; ptr += componentNumber)
|
|
for (; ptr < endPtr; ptr += componentNumber)
|
|
{
|
|
{
|
|
- if (std::numeric_limits<T>::has_quiet_NaN &&
|
|
|
|
- vtkMath::IsNan(*ptr))
|
|
|
|
|
|
+ if ((std::numeric_limits<T>::has_quiet_NaN &&
|
|
|
|
+ vtkMath::IsNan(*ptr)) || vtkMath::IsInf(*ptr))
|
|
{
|
|
{
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|