From 39b242716e1ee1ad0540d83e77c52630901d0791 Mon Sep 17 00:00:00 2001 From: enk Date: Mon, 25 Dec 2006 08:39:02 +0000 Subject: [PATCH] Fix for bug Bug IPAL14105: "PRSMERGER" type of presentation is stored under "Animation", instead of "SCALARMAP". --- src/VISU_I/VISU_TimeAnimation.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); -- 2.39.2