Commit 6550c7af authored by Kenneth Leiter's avatar Kenneth Leiter
Browse files

BUG: Fix relative path error causing seg fault in HDF5

parent 268b6362
......@@ -91,7 +91,7 @@
//----------------------------------------------------------------------------
vtkStandardNewMacro(vtkXdmfReader);
vtkCxxRevisionMacro(vtkXdmfReader, "1.68");
vtkCxxRevisionMacro(vtkXdmfReader, "1.69");
//----------------------------------------------------------------------------
vtkCxxSetObjectMacro(vtkXdmfReader,Controller,vtkMultiProcessController);
......@@ -1641,7 +1641,7 @@ bool vtkXdmfReader::ParseXML()
//Tell the parser what the working directory is.
vtkstd::string directory =
vtksys::SystemTools::GetFilenamePath(this->FileName) + "/";
if (directory == "")
if (directory == "/")
{
directory = vtksys::SystemTools::GetCurrentWorkingDirectory() + "/";
}
......
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