mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-13 17:18:35 +05:00
fix bug 12361. Peview possiblity of SetCurrentStudy(nil)
This commit is contained in:
parent
850cf38bd9
commit
fdfe9f0f65
@ -456,13 +456,16 @@ void SMESH_Gen_i::SetCurrentStudy( SALOMEDS::Study_ptr theStudy )
|
|||||||
myStudyContextMap[ studyId ] = new StudyContext;
|
myStudyContextMap[ studyId ] = new StudyContext;
|
||||||
}
|
}
|
||||||
|
|
||||||
SALOMEDS::StudyBuilder_var aStudyBuilder = myCurrentStudy->NewBuilder();
|
// myCurrentStudy may be nil
|
||||||
if( !myCurrentStudy->FindComponent( "GEOM" )->_is_nil() )
|
if ( !CORBA::is_nil( myCurrentStudy ) ) {
|
||||||
aStudyBuilder->LoadWith( myCurrentStudy->FindComponent( "GEOM" ), GetGeomEngine() );
|
SALOMEDS::StudyBuilder_var aStudyBuilder = myCurrentStudy->NewBuilder();
|
||||||
|
if( !myCurrentStudy->FindComponent( "GEOM" )->_is_nil() )
|
||||||
|
aStudyBuilder->LoadWith( myCurrentStudy->FindComponent( "GEOM" ), GetGeomEngine() );
|
||||||
|
|
||||||
// set current study for geom engine
|
// set current study for geom engine
|
||||||
//if ( !CORBA::is_nil( GetGeomEngine() ) )
|
//if ( !CORBA::is_nil( GetGeomEngine() ) )
|
||||||
// GetGeomEngine()->GetCurrentStudy( myCurrentStudy->StudyId() );
|
// GetGeomEngine()->GetCurrentStudy( myCurrentStudy->StudyId() );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
|
Loading…
Reference in New Issue
Block a user