Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab4288f
)
check if module "GEOM" is found
author
asl
<asl@opencascade.com>
Wed, 9 Nov 2005 07:20:47 +0000
(07:20 +0000)
committer
asl
<asl@opencascade.com>
Wed, 9 Nov 2005 07:20:47 +0000
(07:20 +0000)
src/SMESH_I/SMESH_Gen_i.cxx
patch
|
blob
|
history
diff --git
a/src/SMESH_I/SMESH_Gen_i.cxx
b/src/SMESH_I/SMESH_Gen_i.cxx
index 3d36ed3423e45f94afbafd1775fcde3d37b0e84a..fcbf895c030469f7dab23623117f49cbc793dac0 100644
(file)
--- 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() ) )