diff --git a/src/classes/PMsrHandler.cpp b/src/classes/PMsrHandler.cpp index c8a8e724..9532814b 100644 --- a/src/classes/PMsrHandler.cpp +++ b/src/classes/PMsrHandler.cpp @@ -402,12 +402,17 @@ int PMsrHandler::WriteMsrLogFile() } // write functions block - f << endl << "FUNCTIONS"; - CheckAndWriteComment(f, ++lineNo); - for (int i=0; iGetFuncString(i); - str.ToLower(); - f << endl << str.Data(); +cout << endl << ">> GetNoOfFuncs() = " << GetNoOfFuncs() << endl; + if (GetNoOfFuncs() != 0) { + f << endl << "FUNCTIONS"; + CheckAndWriteComment(f, ++lineNo); + for (int i=0; iGetFuncString(i); + str.ToLower(); + f << endl << str.Data(); + CheckAndWriteComment(f, ++lineNo); + } + } else { CheckAndWriteComment(f, ++lineNo); }