mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-20 16:00:32 +05:00
Fix bug 17903: Problem with closing studies.
This commit is contained in:
parent
4a314e77eb
commit
8b495b9b50
@ -3593,6 +3593,10 @@ void SMESH_Gen_i::Close( SALOMEDS::SComponent_ptr theComponent )
|
|||||||
{
|
{
|
||||||
if(MYDEBUG) MESSAGE( "SMESH_Gen_i::Close" );
|
if(MYDEBUG) MESSAGE( "SMESH_Gen_i::Close" );
|
||||||
|
|
||||||
|
// set correct current study
|
||||||
|
if (theComponent->GetStudy()->StudyId() != GetCurrentStudyID())
|
||||||
|
SetCurrentStudy(theComponent->GetStudy());
|
||||||
|
|
||||||
// Clear study contexts data
|
// Clear study contexts data
|
||||||
int studyId = GetCurrentStudyID();
|
int studyId = GetCurrentStudyID();
|
||||||
if ( myStudyContextMap.find( studyId ) != myStudyContextMap.end() ) {
|
if ( myStudyContextMap.find( studyId ) != myStudyContextMap.end() ) {
|
||||||
|
Loading…
Reference in New Issue
Block a user