mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-11 16:19:17 +05:00
Fix for bug when GEOM did not check for Engine to be correctly loaded.
This commit is contained in:
parent
f9080ed351
commit
e11f561fd5
@ -2873,5 +2873,5 @@ msgstr "Rename"
|
|||||||
msgid "NAME_LBL"
|
msgid "NAME_LBL"
|
||||||
msgstr "Name: "
|
msgstr "Name: "
|
||||||
|
|
||||||
msgid "GEOM_ERR_LOAD_ENGINE"
|
msgid "GEOM_ERR_GET_ENGINE"
|
||||||
msgstr "Failed to load GEOM Engine component"
|
msgstr "Failed to obtain GEOM Engine component. Reload Geometry module and try again."
|
||||||
|
@ -288,6 +288,12 @@ void GeometryGUI::OnGUIEvent( int id )
|
|||||||
if( !ViewOCC && !ViewVTK )
|
if( !ViewOCC && !ViewVTK )
|
||||||
return;
|
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;
|
GEOMGUI* library = 0;
|
||||||
// try to get-or-load corresponding GUI library
|
// try to get-or-load corresponding GUI library
|
||||||
if( id == 111 || // MENU FILE - IMPORT BREP
|
if( id == 111 || // MENU FILE - IMPORT BREP
|
||||||
|
Loading…
Reference in New Issue
Block a user