diff --git a/Code/Mantid/Framework/DataHandling/src/LoadInstrument.cpp b/Code/Mantid/Framework/DataHandling/src/LoadInstrument.cpp index b2d8fff4237ee1b004d707045defab3de8675d1c..c3ec47cea7b9d66c6ca357b535a006c7eeac8880 100644 --- a/Code/Mantid/Framework/DataHandling/src/LoadInstrument.cpp +++ b/Code/Mantid/Framework/DataHandling/src/LoadInstrument.cpp @@ -134,7 +134,7 @@ namespace Mantid const std::string::size_type stripPath = m_filename.find_last_of("\\/"); std::string instrumentFile = m_filename.substr(stripPath+1,m_filename.size()); // Strip off "_Definition.xml" - m_instName = instrumentFile.substr(0,instrumentFile.find_first_of("_Def")); + m_instName = instrumentFile.substr(0,instrumentFile.find_first_of("_")); } // Load the XML text into a string