Fix bug 17903: Problem with closing studies.

This commit is contained in:
jfa 2007-11-26 14:01:25 +00:00
parent 4a314e77eb
commit 8b495b9b50

View File

@ -3593,6 +3593,10 @@ void SMESH_Gen_i::Close( SALOMEDS::SComponent_ptr theComponent )
{
if(MYDEBUG) MESSAGE( "SMESH_Gen_i::Close" );
// set correct current study
if (theComponent->GetStudy()->StudyId() != GetCurrentStudyID())
SetCurrentStudy(theComponent->GetStudy());
// Clear study contexts data
int studyId = GetCurrentStudyID();
if ( myStudyContextMap.find( studyId ) != myStudyContextMap.end() ) {