for (int i = 0; i < getNbFields(); i++) {
FieldData& aData = myFieldsLst[i];
- if ( aData.myPrs[0] ) {
+ if ( aData.myPrs.front() ) {
_PTR(SObject) newObj = aStudyBuilder->NewObject(aAnimSObject);
aStudyBuilder->Addreference(newObj, aData.myField);
aData.myPrs[0]->ToStream(strOut);
string aPrsComment = strOut.str();
string aPrsNameTxt = aData.myPrs[0]->GetComment();
-
+ if(aPrsNameTxt == "PRSMERGER")
+ aPrsNameTxt = "SCALARMAP";
// Save in study
_PTR(SObject) aRefObj = anIter->Value();
_PTR(ChildIterator) anPrsIter = myStudy->NewChildIterator(aRefObj);