Commit a7c2dd73 authored by Ben Boeckel's avatar Ben Boeckel

vtkXMLUnstructuredDataWriter: also check for string output

Fixes #15558.
parent 82808661
......@@ -114,10 +114,11 @@ int vtkXMLUnstructuredDataWriter::ProcessRequest(vtkInformation* request,
{
this->SetErrorCode(vtkErrorCode::NoError);
if(!this->Stream && !this->FileName)
if(!this->Stream && !this->FileName && !this->WriteToOutputString)
{
this->SetErrorCode(vtkErrorCode::NoFileNameError);
vtkErrorMacro("The FileName or Stream must be set first.");
vtkErrorMacro("The FileName or Stream must be set first or "
"the output must be written to a string.");
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