From 616df4d636c8639855b1434094c9090ccac529db Mon Sep 17 00:00:00 2001 From: enk Date: Thu, 14 Dec 2006 09:22:11 +0000 Subject: [PATCH] fix for Bug IPAL14105: "PRSMERGER" type of presentation is stored under "Animation", instead of "SCALARMAP". --- src/VISU_I/VISU_TimeAnimation.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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(); -- 2.39.2