Commit 13bfbcff authored by Ken Martin's avatar Ken Martin
Browse files

fix a case where XMLDataReader errored on abort

When aborting sometimes it caused an error
parent 3d195c2d
......@@ -445,10 +445,13 @@ int vtkXMLDataReader::ReadPieceData()
// Read the array.
if (!this->ReadArrayForCells(eNested, cellData->GetAbstractArray(a++)))
{
vtkErrorMacro("Cannot read cell data array \""
<< cellData->GetAbstractArray(a-1)->GetName() << "\" from "
<< ePointData->GetName() << " in piece " << this->Piece
<< ". The data array in the element may be too short.");
if (!this->AbortExecute)
{
vtkErrorMacro("Cannot read cell data array \""
<< cellData->GetAbstractArray(a-1)->GetName() << "\" from "
<< ePointData->GetName() << " in piece " << this->Piece
<< ". The data array in the element may be too short.");
}
return 0;
}
}
......
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