From: enk Date: Thu, 14 Dec 2006 09:22:11 +0000 (+0000) Subject: fix for Bug IPAL14105: X-Git-Tag: V3_2_4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=616df4d636c8639855b1434094c9090ccac529db;p=modules%2Fvisu.git fix for 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 a7ed33b2..d2fb6d84 100644 --- a/src/VISU_I/VISU_TimeAnimation.cxx +++ b/src/VISU_I/VISU_TimeAnimation.cxx @@ -1509,8 +1509,11 @@ SALOMEDS::SObject_ptr VISU_TimeAnimation::publishInStudy() ostringstream strOut; aData.myPrs[0]->ToStream(strOut); string aPrsComment = strOut.str(); + string aPrsMyComment = aData.myPrs[0]->GetComment(); + if(aPrsMyComment == "PRSMERGER") + aPrsMyComment = "SCALARMAP"; VISU::CreateAttributes(myStudy, newObj->GetID().c_str(),"","", - aData.myPrs[0]->GetComment(),"",aPrsComment.c_str(),true); + aPrsMyComment.c_str(),"",aPrsComment.c_str(),true); } } aStudyBuilder->CommitCommand();