Skip to content

Commit

Permalink
Now correctly removes extension after right most period. Refs #3189
Browse files Browse the repository at this point in the history
  • Loading branch information
jawrainey committed Jul 24, 2013
1 parent 206b997 commit e73e8fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Code/Mantid/Framework/DataHandling/src/LoadRawHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1161,7 +1161,7 @@ namespace Mantid
}
}
// Remove extension from path, and append .log to path.
std::string logName = pathToRawFile.substr(0, pathToRawFile.find('.')) + ".log";
std::string logName = pathToRawFile.substr(0, pathToRawFile.rfind('.')) + ".log";
// Check if log file exists in current directory.
std::ifstream fileExists(logName.c_str());
if(fileExists)
Expand Down

0 comments on commit e73e8fa

Please sign in to comment.