Commit 3dae8549 authored by Berk Geveci's avatar Berk Geveci
Browse files

Fixed UMR

parent 36cc6467
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
#include "vtkUnstructuredGrid.h" #include "vtkUnstructuredGrid.h"
#include "vtkExtentTranslator.h" #include "vtkExtentTranslator.h"
vtkCxxRevisionMacro(vtkPDataSetReader, "1.24"); vtkCxxRevisionMacro(vtkPDataSetReader, "1.25");
vtkStandardNewMacro(vtkPDataSetReader); vtkStandardNewMacro(vtkPDataSetReader);
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
...@@ -742,6 +742,9 @@ void vtkPDataSetReader::ReadVTKFileInformation(ifstream *file) ...@@ -742,6 +742,9 @@ void vtkPDataSetReader::ReadVTKFileInformation(ifstream *file)
float x, y, z; float x, y, z;
vtkDataSet *output; vtkDataSet *output;
char str[1024]; char str[1024];
// To avoid UMR in the first string comparison
strcpy(str, " ");
// Try to find the line that specifies the dataset type. // Try to find the line that specifies the dataset type.
i = 0; i = 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