Commit 68de13ae authored by Dan Lipsa's avatar Dan Lipsa
Browse files

BUG #16091: vtkXMLStructuredDataWriter aborted if writing to a string

parent 8bb73545
...@@ -122,10 +122,11 @@ int vtkXMLStructuredDataWriter::ProcessRequest( ...@@ -122,10 +122,11 @@ int vtkXMLStructuredDataWriter::ProcessRequest(
{ {
this->SetErrorCode(vtkErrorCode::NoError); this->SetErrorCode(vtkErrorCode::NoError);
if (!this->Stream && !this->FileName) if (!this->Stream && !this->FileName && !this->WriteToOutputString)
{ {
this->SetErrorCode(vtkErrorCode::NoFileNameError); 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; return 0;
} }
......
Supports Markdown
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