]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix on - Bug IPAL8815
authorapo <apo@opencascade.com>
Mon, 23 May 2005 04:44:47 +0000 (04:44 +0000)
committerapo <apo@opencascade.com>
Mon, 23 May 2005 04:44:47 +0000 (04:44 +0000)
   T1.5: Presentation translation not work after save and restore study

src/VISU_I/VISU_Prs3d_i.cc

index 45c01285c8231069ea1534202ac863b3d26b1e82..4f7cf0aac3dc67d9b1292f2742045a8123f83e6a 100644 (file)
@@ -138,6 +138,11 @@ vtkUnstructuredGrid* VISU::Prs3d_i::GetInput(){
 
 
 SALOMEDS::SObject_var VISU::Prs3d_i::GetSObject(){
+  if(CORBA::is_nil(mySObject.in())){
+    const SALOMEDS::Study_var& aStudy = myResult->GetStudyDocument();
+    CORBA::String_var anIOR = GetID();
+    mySObject = aStudy->FindObjectIOR(anIOR);
+  }
   return mySObject;
 }