Commit 71c79620 authored by Cory Quammen's avatar Cory Quammen Committed by Kitware Robot
Browse files

Merge topic 'structured_grid_output'

68de13ae

 BUG #16091: vtkXMLStructuredDataWriter aborted if writing to a string
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: default avatarRobert Maynard <robert.maynard@kitware.com>
Reviewed-by: Cory Quammen's avatarCory Quammen <cory.quammen@kitware.com>
Merge-request: !1645
parents c969c879 68de13ae
......@@ -122,10 +122,11 @@ int vtkXMLStructuredDataWriter::ProcessRequest(
{
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