Salome HOME
check if module "GEOM" is found
authorasl <asl@opencascade.com>
Wed, 9 Nov 2005 07:20:47 +0000 (07:20 +0000)
committerasl <asl@opencascade.com>
Wed, 9 Nov 2005 07:20:47 +0000 (07:20 +0000)
src/SMESH_I/SMESH_Gen_i.cxx

index 3d36ed3..fcbf895 100644 (file)
@@ -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() ) )