Commit 3c5c5ad4 authored by Berk Geveci's avatar Berk Geveci Committed by Kitware Robot
Browse files

Merge topic 'XMLPRectilinearGridReader-bug-fix'

a4a2b455 Fixed bug in the error reporting code. It caused a segfault.
parents 05a9fd50 a4a2b455
......@@ -108,7 +108,9 @@ vtkXMLPRectilinearGridReader::ReadPrimaryElement(vtkXMLDataElement* ePrimary)
if(!this->PCoordinatesElement)
{
int extent[6];
vtkRectilinearGrid::SafeDownCast(this->GetCurrentOutput())->GetWholeExtent(extent);
vtkInformation* outInfo = this->GetCurrentOutputInformation();
outInfo->Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(),
extent);
if((extent[0] <= extent[1]) && (extent[2] <= extent[3]) &&
(extent[4] <= extent[5]))
{
......
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