diff --git a/Code/Mantid/Framework/DataHandling/src/LoadGSASInstrumentFile.cpp b/Code/Mantid/Framework/DataHandling/src/LoadGSASInstrumentFile.cpp index 29fbfcee7ef1..f722896c26fe 100644 --- a/Code/Mantid/Framework/DataHandling/src/LoadGSASInstrumentFile.cpp +++ b/Code/Mantid/Framework/DataHandling/src/LoadGSASInstrumentFile.cpp @@ -198,7 +198,7 @@ namespace DataHandling // line too short return -1; } - return boost::lexical_cast(lines[i].substr(lookFor.size(),3)); // Found + return boost::lexical_cast(lines[i].substr(lookFor.size()+2,1)); // Found } } return 0;