From: apo Date: Mon, 23 May 2005 04:44:47 +0000 (+0000) Subject: Fix on - Bug IPAL8815 X-Git-Tag: V2_2_0_VISU_improvement_2005-05-27~13 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7c2dd1bc481fbaa459ef9c52d3dfd4f2ad157a6c;p=modules%2Fvisu.git Fix on - Bug IPAL8815 T1.5: Presentation translation not work after save and restore study --- diff --git a/src/VISU_I/VISU_Prs3d_i.cc b/src/VISU_I/VISU_Prs3d_i.cc index 45c01285..4f7cf0aa 100644 --- a/src/VISU_I/VISU_Prs3d_i.cc +++ b/src/VISU_I/VISU_Prs3d_i.cc @@ -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; }