From: asl Date: Wed, 9 Nov 2005 07:20:47 +0000 (+0000) Subject: check if module "GEOM" is found X-Git-Tag: V3_1_0a3~17 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d696f7d582cfb96f139f88e10ee857ed89e3a9d9;p=modules%2Fsmesh.git check if module "GEOM" is found --- diff --git a/src/SMESH_I/SMESH_Gen_i.cxx b/src/SMESH_I/SMESH_Gen_i.cxx index 3d36ed342..fcbf895c0 100644 --- a/src/SMESH_I/SMESH_Gen_i.cxx +++ b/src/SMESH_I/SMESH_Gen_i.cxx @@ -421,7 +421,8 @@ void SMESH_Gen_i::SetCurrentStudy( SALOMEDS::Study_ptr theStudy ) } SALOMEDS::StudyBuilder_var aStudyBuilder = myCurrentStudy->NewBuilder(); - aStudyBuilder->LoadWith( myCurrentStudy->FindComponent( "GEOM" ), GetGeomEngine() ); + if( !myCurrentStudy->FindComponent( "GEOM" )->_is_nil() ) + aStudyBuilder->LoadWith( myCurrentStudy->FindComponent( "GEOM" ), GetGeomEngine() ); // set current study for geom engine //if ( !CORBA::is_nil( GetGeomEngine() ) )