Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
debian
VTK
Commits
68de13ae
Commit
68de13ae
authored
Jul 06, 2016
by
Dan Lipsa
Browse files
BUG #16091: vtkXMLStructuredDataWriter aborted if writing to a string
parent
8bb73545
Changes
1
Hide whitespace changes
Inline
Side-by-side
IO/XML/vtkXMLStructuredDataWriter.cxx
View file @
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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment