Commit 78f28701 authored by Amy Squillacote's avatar Amy Squillacote
Browse files

BUG: If you select the wrong byte order when loading a binary EnSight data...

BUG: If you select the wrong byte order when loading a binary EnSight data set, you should be able to reselect the byte order and reload the file. (bug #1576)
parent 82644de4
......@@ -31,7 +31,7 @@
#include <ctype.h>
#include <vtkstd/string>
vtkCxxRevisionMacro(vtkEnSightGoldBinaryReader, "1.59");
vtkCxxRevisionMacro(vtkEnSightGoldBinaryReader, "1.60");
vtkStandardNewMacro(vtkEnSightGoldBinaryReader);
// This is half the precision of an int.
......@@ -209,12 +209,12 @@ int vtkEnSightGoldBinaryReader::ReadGeometryFile(const char* fileName, int timeS
{
this->ReadPartId(&partId);
partId--; // EnSight starts #ing at 1.
realId = this->InsertNewPartId(partId);
if (partId < 0 || partId >= MAXIMUM_PART_ID)
{
vtkErrorMacro("Invalid part id; check that ByteOrder is set correctly.");
return 0;
}
realId = this->InsertNewPartId(partId);
this->ReadLine(line); // part description line
char *name = strdup(line);
......
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