fix of MUSR-27: mlog-file should now be ok, enven if there is no FUNCTIONS block
This commit is contained in:
parent
0bb27b7061
commit
6eacc87cee
@ -402,6 +402,8 @@ int PMsrHandler::WriteMsrLogFile()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// write functions block
|
// write functions block
|
||||||
|
cout << endl << ">> GetNoOfFuncs() = " << GetNoOfFuncs() << endl;
|
||||||
|
if (GetNoOfFuncs() != 0) {
|
||||||
f << endl << "FUNCTIONS";
|
f << endl << "FUNCTIONS";
|
||||||
CheckAndWriteComment(f, ++lineNo);
|
CheckAndWriteComment(f, ++lineNo);
|
||||||
for (int i=0; i<GetNoOfFuncs(); i++) {
|
for (int i=0; i<GetNoOfFuncs(); i++) {
|
||||||
@ -410,6 +412,9 @@ int PMsrHandler::WriteMsrLogFile()
|
|||||||
f << endl << str.Data();
|
f << endl << str.Data();
|
||||||
CheckAndWriteComment(f, ++lineNo);
|
CheckAndWriteComment(f, ++lineNo);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
CheckAndWriteComment(f, ++lineNo);
|
||||||
|
}
|
||||||
|
|
||||||
// write run block
|
// write run block
|
||||||
for (unsigned int i=0; i<fRuns.size(); i++) {
|
for (unsigned int i=0; i<fRuns.size(); i++) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user