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

Fixed UMR

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