From 8090525b4713bb9a09f4781864d4f4003989b4c8 Mon Sep 17 00:00:00 2001 From: srn Date: Tue, 21 Jun 2005 06:09:10 +0000 Subject: [PATCH] BugID IPAL9186: Modified method GetSMESHGen --- src/SMESHGUI/SMESHGUI.cxx | 6 ++++++ 1 file changed, 6 insertions(+) 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; } -- 2.39.2