Commit 03f893bf authored by Chuck Atkins's avatar Chuck Atkins
Browse files

XMLReader: Prevent streams from being closed when they don't exist.

Change-Id: If841a1ad30528499f592e7e6bfc09d146835ab51
parent c38f07c7
......@@ -299,15 +299,18 @@ int vtkXMLReader::OpenVTKString()
//----------------------------------------------------------------------------
void vtkXMLReader::CloseStream()
{
if (this->ReadFromInputString)
{
this->CloseVTKString();
}
else
if (this->Stream)
{
this->CloseVTKFile();
if (this->ReadFromInputString)
{
this->CloseVTKString();
}
else
{
this->CloseVTKFile();
}
this->Stream = 0;
}
this->Stream = 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