From: apo Date: Fri, 27 Oct 2006 14:19:44 +0000 (+0000) Subject: To initialize VISU_PrsObject_i::myStudy when SetResultObject is called X-Git-Tag: WP1_2_3_06-10-2006~33 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=852d859e6db80ca66bcb6018cf8c85e7a57d76c1;p=modules%2Fvisu.git To initialize VISU_PrsObject_i::myStudy when SetResultObject is called --- diff --git a/src/VISU_I/VISU_Prs3d_i.cc b/src/VISU_I/VISU_Prs3d_i.cc index a74b9531..9a97c36b 100644 --- a/src/VISU_I/VISU_Prs3d_i.cc +++ b/src/VISU_I/VISU_Prs3d_i.cc @@ -137,6 +137,7 @@ VISU::Prs3d_i myResult->Destroy(); if(aResult) aResult->Register(); + SetStudyDocument(aResult->GetStudyDocument()); myResult = aResult; } } diff --git a/src/VISU_I/VISU_ScalarMap_i.cc b/src/VISU_I/VISU_ScalarMap_i.cc index c55e9d01..8f8cc517 100644 --- a/src/VISU_I/VISU_ScalarMap_i.cc +++ b/src/VISU_I/VISU_ScalarMap_i.cc @@ -156,9 +156,9 @@ VISU::ScalarMap_i ::Create(const char* theMeshName, VISU::Entity theEntity, const char* theFieldName, - int theIteration) + int theTimeStampNumber) { - TSuperClass::Create(theMeshName,theEntity,theFieldName,theIteration); + TSuperClass::Create(theMeshName,theEntity,theFieldName,theTimeStampNumber); SUIT_ResourceMgr* aResourceMgr = VISU::GetResourceMgr();