mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
Fix problem in Mesh module on closing study operation (reference to the non existent study is kept and used)
This commit is contained in:
parent
49644451f1
commit
3fa4acc3ab
@ -4195,6 +4195,7 @@ void SMESH_Gen_i::Close( SALOMEDS::SComponent_ptr theComponent )
|
|||||||
// context->myDocument = 0;
|
// context->myDocument = 0;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
|
myCurrentStudy = SALOMEDS::Study::_nil();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -4316,6 +4317,11 @@ void SMESH_Gen_i::SetName(const char* theIOR,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int SMESH_Gen_i::GetCurrentStudyID()
|
||||||
|
{
|
||||||
|
return myCurrentStudy->_is_nil() || myCurrentStudy->_non_existent() ? -1 : myCurrentStudy->StudyId();
|
||||||
|
}
|
||||||
|
|
||||||
//=============================================================================
|
//=============================================================================
|
||||||
/*!
|
/*!
|
||||||
* SMESHEngine_factory
|
* SMESHEngine_factory
|
||||||
|
@ -498,8 +498,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Get current study ID
|
// Get current study ID
|
||||||
int GetCurrentStudyID()
|
int GetCurrentStudyID();
|
||||||
{ return myCurrentStudy->_is_nil() ? -1 : myCurrentStudy->StudyId(); }
|
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Find SObject for an algo
|
* \brief Find SObject for an algo
|
||||||
|
Loading…
Reference in New Issue
Block a user