Commit a2c287b8 authored by David Cole's avatar David Cole
Browse files

ENH: Merge changes (plus one manual mod) from main tree into VTK-5-0 branch....

ENH: Merge changes (plus one manual mod) from main tree into VTK-5-0 branch. (cvs -q up -j1.70 -j1.71 IO/vtkXMLWriter.cxx)
parent aa271ecf
......@@ -44,7 +44,7 @@
# include <io.h> /* unlink */
#endif
vtkCxxRevisionMacro(vtkXMLWriter, "1.58.2.4");
vtkCxxRevisionMacro(vtkXMLWriter, "1.58.2.5");
vtkCxxSetObjectMacro(vtkXMLWriter, Compressor, vtkDataCompressor);
//----------------------------------------------------------------------------
......@@ -406,6 +406,10 @@ int vtkXMLWriter::OpenFile()
this->Stream = this->OutFile;
}
// Make sure sufficient precision is used in the ascii
// representation of data and meta-data.
this->Stream->precision(11);
// Setup the output streams.
this->DataStream->SetStream(this->Stream);
......@@ -1487,7 +1491,6 @@ int vtkXMLWriter::WriteAsciiData(void* data, int numWords, int wordType,
void* b = data;
int nw = numWords;
vtkIndent i = indent;
this->Stream->precision(11);
ostream& os = *(this->Stream);
switch(wordType)
{
......
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