From: enk Date: Mon, 25 Dec 2006 08:39:02 +0000 (+0000) Subject: Fix for bug Bug IPAL14105: X-Git-Tag: NPAL14357~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=39b242716e1ee1ad0540d83e77c52630901d0791;p=modules%2Fvisu.git Fix for bug Bug IPAL14105: "PRSMERGER" type of presentation is stored under "Animation", instead of "SCALARMAP". --- diff --git a/src/VISU_I/VISU_TimeAnimation.cxx b/src/VISU_I/VISU_TimeAnimation.cxx index d2fb6d84..a478f55e 100644 --- a/src/VISU_I/VISU_TimeAnimation.cxx +++ b/src/VISU_I/VISU_TimeAnimation.cxx @@ -1499,7 +1499,7 @@ SALOMEDS::SObject_ptr VISU_TimeAnimation::publishInStudy() 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); @@ -1558,7 +1558,8 @@ void VISU_TimeAnimation::saveAnimation() 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);