From: srn Date: Tue, 21 Jun 2005 06:09:10 +0000 (+0000) Subject: BugID IPAL9186: Modified method GetSMESHGen X-Git-Tag: T3_0_0_a4~19 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=8090525b4713bb9a09f4781864d4f4003989b4c8;p=modules%2Fsmesh.git BugID IPAL9186: Modified method GetSMESHGen --- diff --git a/src/SMESHGUI/SMESHGUI.cxx b/src/SMESHGUI/SMESHGUI.cxx index f5846d3f2..2b1da3a9c 100644 --- a/src/SMESHGUI/SMESHGUI.cxx +++ b/src/SMESHGUI/SMESHGUI.cxx @@ -3077,6 +3077,12 @@ void SMESHGUI::OnGUIEvent() SMESH::SMESH_Gen_var SMESHGUI::GetSMESHGen() { + + if ( CORBA::is_nil( myComponentSMESH ) ) + { + SMESHGUI aGUI; //SRN BugID: IPAL9186: Create an instance of SMESHGUI to initialize myComponentSMESH + return aGUI.myComponentSMESH; + } return myComponentSMESH; }