Commit c5f557ac authored by Alexander Danilov's avatar Alexander Danilov
Browse files

Fix Mesh::Load() for local files

parent 9d0ff808
......@@ -686,7 +686,7 @@ ecl_exit_loop:
std::string str, tag, attrval, path = "";
std::vector<std::string> files;
std::fstream stream(File.c_str(),std::ios::in);
l = static_cast<INMOST_DATA_ENUM_TYPE>(File.find_last_of("/\\"));
l = File.find_last_of("/\\");
if( l != std::string::npos )
path = File.substr(0,l+1);
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