From: asv Date: Thu, 9 Jun 2005 12:34:59 +0000 (+0000) Subject: Fix for bug when GEOM did not check for Engine to be correctly loaded. X-Git-Tag: T3_0_0_a3~4 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e11f561fd5d0c9598934ca355101a3685bc3cf5d;p=modules%2Fgeom.git Fix for bug when GEOM did not check for Engine to be correctly loaded. --- diff --git a/src/GEOMGUI/GEOM_msg_en.po b/src/GEOMGUI/GEOM_msg_en.po index 5ec8e5a37..19646195f 100644 --- a/src/GEOMGUI/GEOM_msg_en.po +++ b/src/GEOMGUI/GEOM_msg_en.po @@ -2873,5 +2873,5 @@ msgstr "Rename" msgid "NAME_LBL" msgstr "Name: " -msgid "GEOM_ERR_LOAD_ENGINE" -msgstr "Failed to load GEOM Engine component" +msgid "GEOM_ERR_GET_ENGINE" +msgstr "Failed to obtain GEOM Engine component. Reload Geometry module and try again." diff --git a/src/GEOMGUI/GeometryGUI.cxx b/src/GEOMGUI/GeometryGUI.cxx index 170096aaa..811f5b1ba 100644 --- a/src/GEOMGUI/GeometryGUI.cxx +++ b/src/GEOMGUI/GeometryGUI.cxx @@ -288,6 +288,12 @@ void GeometryGUI::OnGUIEvent( int id ) if( !ViewOCC && !ViewVTK ) return; + // fix for IPAL9103, point 2 + if ( CORBA::is_nil( GetGeomGen() ) ) { + SUIT_MessageBox::error1( desk, tr( "GEOM_ERROR" ), tr( "GEOM_ERR_GET_ENGINE" ), tr( "GEOM_BUT_OK" ) ); + return; + } + GEOMGUI* library = 0; // try to get-or-load corresponding GUI library if( id == 111 || // MENU FILE - IMPORT BREP